Class Closed<T>

Type Parameters:
T - Result type. Usually Void, but certain kinds of I/O channels have additional information associated with their closing.
All Implemented Interfaces:
Future<T>, Associator, Eligible
Direct Known Subclasses:
ProcessExited

public class Closed<T> extends Event<T>
This event signals that an I/O subchannel will no longer be used.

Components that have allocated resources for that channel should release them in response to receiving this event.

  • Constructor Details

    • Closed

      public Closed(Throwable error)
      Creates a new event that signals a close in response to an error (usually an IOException.
      Parameters:
      error - the error
    • Closed

      public Closed()
      Creates a new event that signals a regular close.
  • Method Details