Package org.jgrapes.io.events
Class NioRegistration
- All Implemented Interfaces:
Future<NioRegistration.Registration>,Associator,Eligible
Signal a registration request to a registry.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe completion event for aNioRegistrationevent.static classPassed during registration.Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State -
Field Summary
Fields inherited from class org.jgrapes.core.internal.EventBase
completed, completionEvents, invokedFor -
Constructor Summary
ConstructorsConstructorDescriptionNioRegistration(NioHandler handler, SelectableChannel ioChannel, int ops, Channel completedTarget) Creates a new registration event for the given handler, using the given NIO channel and handling the given operations. -
Method Summary
Methods inherited from class org.jgrapes.core.Event
addCompletionEvent, associated, cancel, channels, channels, completionEvents, currentResults, defaultCriterion, forChannels, get, get, handled, handlingError, isCancelled, isDone, isEligibleFor, isStopped, processedBy, results, results, resumeHandling, setAssociated, setChannels, setRequiresResult, setResult, stop, suspendHandling, suspendHandling, tieTo, toStringMethods inherited from class org.jgrapes.core.internal.EventBase
disableTracking, enqueued, firstResultAssigned, isTracked, onCompletionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jgrapes.core.Associator
associated, associated, associated, associatedGetMethods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, state
-
Constructor Details
-
NioRegistration
public NioRegistration(NioHandler handler, SelectableChannel ioChannel, int ops, Channel completedTarget) Creates a new registration event for the given handler, using the given NIO channel and handling the given operations.The completed event for this event is to be sent to the given channel.
- Parameters:
handler- the handlerioChannel- the NIO channelops- the supported operationscompletedTarget- where to send the completed event to
-
-
Method Details
-
handler
- Returns:
- the handler
-
ioChannel
- Returns:
- the channel
-
ops
- Returns:
- the ops
-