Top Description Inners Methods
org.xnio.conduits

public Interface ReadReadyHandler

extends TerminateHandler
Known Direct Implementers
org.xnio.conduits.ReadReadyHandler.ChannelListenerHandler
Imports
org.xnio.ChannelListener, .ChannelListeners, .IoUtils, org.xnio.channels.CloseListenerSettable, .ReadListenerSettable, .SuspendableReadChannel

A conduit read-ready handler.
Author
David M. Lloyd

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
ReadReadyHandler.ChannelListenerHandler<
the channel type
C extends SuspendableReadChannel & ReadListenerSettable<C> & CloseListenerSettable<C>
>

A read ready handler which calls channel listener(s).

public static class
ReadReadyHandler.ReadyTask

A runnable task which invokes the ReadReadyHandler#readReady() method of the given handler.

Method Summary

Modifier and TypeMethod and Description
public void
readReady()

Signify that reads are ready.

Inherited from org.xnio.conduits.TerminateHandler:
forceTerminationterminated

Method Detail

readReadyback to summary
public void readReady()

Signify that reads are ready.

org.xnio.conduits back to summary

public Class ReadReadyHandler.ChannelListenerHandler<C extends SuspendableReadChannel & ReadListenerSettable<C> & CloseListenerSettable<C>>

extends Object
implements ReadReadyHandler
Class Inheritance
All Implemented Interfaces
org.xnio.conduits.ReadReadyHandler, org.xnio.conduits.TerminateHandler
Type Parameters
<C>
the channel type

A read ready handler which calls channel listener(s).

Field Summary

Modifier and TypeField and Description
private final C

Constructor Summary

AccessConstructor and Description
public
ChannelListenerHandler(final C
the channel
channel
)

Construct a new instance.

Method Summary

Modifier and TypeMethod and Description
public void
forceTermination()

Implements org.xnio.conduits.TerminateHandler.forceTermination.

Force the front-end channel to close, in response to XNIO worker shutdown.

public void
readReady()

Implements org.xnio.conduits.ReadReadyHandler.readReady.

Signify that reads are ready.

public void
terminated()

Implements org.xnio.conduits.TerminateHandler.terminated.

Indicate that a previous shutdown request has successfully resulted in termination.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

channelback to summary
private final C channel

Constructor Detail

ChannelListenerHandlerback to summary
public ChannelListenerHandler(final C channel)

Construct a new instance.

Parameters
channel:C

the channel

Method Detail

forceTerminationback to summary
public void forceTermination()

Implements org.xnio.conduits.TerminateHandler.forceTermination.

Doc from org.xnio.conduits.TerminateHandler.forceTermination.

Force the front-end channel to close, in response to XNIO worker shutdown.

readReadyback to summary
public void readReady()

Implements org.xnio.conduits.ReadReadyHandler.readReady.

Doc from org.xnio.conduits.ReadReadyHandler.readReady.

Signify that reads are ready.

terminatedback to summary
public void terminated()

Implements org.xnio.conduits.TerminateHandler.terminated.

Doc from org.xnio.conduits.TerminateHandler.terminated.

Indicate that a previous shutdown request has successfully resulted in termination.

org.xnio.conduits back to summary

public Class ReadReadyHandler.ReadyTask

extends Object
implements Runnable
Class Inheritance
All Implemented Interfaces
java.lang.Runnable

A runnable task which invokes the ReadReadyHandler#readReady() method of the given handler.

Field Summary

Modifier and TypeField and Description
private final ReadReadyHandler

Constructor Summary

AccessConstructor and Description
public
ReadyTask(final ReadReadyHandler
the handler to invoke
handler
)

Construct a new instance.

Method Summary

Modifier and TypeMethod and Description
public void
run()

Implements java.lang.Runnable.run.

Runs this operation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

handlerback to summary
private final ReadReadyHandler handler

Constructor Detail

ReadyTaskback to summary
public ReadyTask(final ReadReadyHandler handler)

Construct a new instance.

Parameters
handler:ReadReadyHandler

the handler to invoke

Method Detail

runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.