|
|
@ -26,11 +26,13 @@ public class StreamConsumer {
|
|
|
|
private final String name;
|
|
|
|
private final String name;
|
|
|
|
private final int pending;
|
|
|
|
private final int pending;
|
|
|
|
private final long idleTime;
|
|
|
|
private final long idleTime;
|
|
|
|
|
|
|
|
private final long inactive;
|
|
|
|
|
|
|
|
|
|
|
|
public StreamConsumer(String name, int pending, long idleTime) {
|
|
|
|
public StreamConsumer(String name, int pending, long idleTime, long inactive) {
|
|
|
|
this.name = name;
|
|
|
|
this.name = name;
|
|
|
|
this.pending = pending;
|
|
|
|
this.pending = pending;
|
|
|
|
this.idleTime = idleTime;
|
|
|
|
this.idleTime = idleTime;
|
|
|
|
|
|
|
|
this.inactive = inactive;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -60,4 +62,12 @@ public class StreamConsumer {
|
|
|
|
return idleTime;
|
|
|
|
return idleTime;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Returns time in milliseconds since the last successful interaction of this consumer
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @return time in milliseconds
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public long getInactive() {
|
|
|
|
|
|
|
|
return inactive;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|