APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.internal.net.http

pack-priv abstract Class AsyncEvent

extends Object
Class Inheritance
Known Direct Subclasses
jdk.internal.net.http.AsyncTriggerEvent, jdk.internal.net.http.PlainHttpConnection.ConnectEvent, jdk.internal.net.http.SocketTube.SocketFlowEvent
Imports
java.io.IOException, java.nio.channels.SelectableChannel

Event handling interface from HttpClientImpl's selector. If REPEATING is set then the event is not cancelled after being posted.

Field Summary

Modifier and TypeField and Description
protected final int
public static final int

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
AsyncEvent(int flags)

Method Summary

Modifier and TypeMethod and Description
public abstract void
abort(IOException
the IOException, or null
ioe
)

Called when an error occurs during registration, or when the selector has been shut down.

public abstract SelectableChannel
channel()

Returns the channel

public abstract void
handle()

Called when event occurs

public abstract int
interestOps()

Returns the selector interest op flags OR'd

public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

flagsback to summary
protected final int flags
REPEATINGback to summary
public static final int REPEATING

Constructor Detail

AsyncEventback to summary
pack-priv AsyncEvent()
AsyncEventback to summary
pack-priv AsyncEvent(int flags)

Method Detail

abortback to summary
public abstract void abort(IOException ioe)

Called when an error occurs during registration, or when the selector has been shut down. Aborts all exchanges.

Parameters
ioe:IOException

the IOException, or null

channelback to summary
public abstract SelectableChannel channel()

Returns the channel

handleback to summary
public abstract void handle()

Called when event occurs

interestOpsback to summary
public abstract int interestOps()

Returns the selector interest op flags OR'd

repeatingback to summary
public boolean repeating()