public class SessionKeepAliveHandler extends java.lang.Object implements Reschedulable<QueuedOmeroKeepAlive>
| Constructor and Description |
|---|
SessionKeepAliveHandler(OmeroEnv env,
SessionService service)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<Schedule<QueuedOmeroKeepAlive>> |
consume(CountedSchedule current,
QueuedOmeroKeepAlive data)
Consumes the output of the channel this instance is bound to.
|
public SessionKeepAliveHandler(OmeroEnv env, SessionService service)
env - the OMERO environment.service - the session service.java.lang.NullPointerException - if any argument is null.public java.util.Optional<Schedule<QueuedOmeroKeepAlive>> consume(CountedSchedule current, QueuedOmeroKeepAlive data)
Reschedulableconsume in interface Reschedulable<QueuedOmeroKeepAlive>current - information about this invocation's schedule.data - the data received from the channel.null.