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
Modifier and TypeClassDescriptionstatic class
The completion event for aNioRegistration
event.static class
Passed 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
ConstructorDescriptionNioRegistration
(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, toString
Methods inherited from class org.jgrapes.core.internal.EventBase
disableTracking, enqueued, firstResultAssigned, isTracked, onCompletion
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.jgrapes.core.Associator
associated, associated, associated, associatedGet
Methods 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
-