public static final class DOFConnection.StreamRequest
extends java.lang.Object
DOFConnection.Type.STREAM
connection to a specific, target DOFAddress.Type.UNICAST
address based on the desire (expressed by interest operations) for a STREAM connection and the presence of a matching
binding. There will only ever be one StreamRequest for any given combination of DOFConnection.Config
and
DOFAddress
to minimize the work required by the application to process these conditions.Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
DOFConnection |
getConnection() |
DOFAddress |
getTargetAddress() |
int |
hashCode() |
public DOFAddress getTargetAddress()
public DOFConnection getConnection()
DOFConnection
created
specifically for the StreamRequest that shares the config and state with the connection to which the request
applies. Its scope is strictly the StreamRequest, which means that the listener cannot force this connection
to be disconnected (the disconnect method will decrement the connection’s reference count, which may cause
the connection to be disconnected), but it can cause the connection to be kept connected (this is most useful
for when the callbacks are on a streaming connection to keep it open). Since this connection is available
through the StreamRequest, it is available to both the DOFConnection.StreamRequestListener.streamRequest(org.opendof.core.oal.DOFConnection.Config, org.opendof.core.oal.DOFConnection.StreamRequest)
and
DOFConnection.StreamRequestListener.streamRequestComplete(org.opendof.core.oal.DOFConnection.Config, org.opendof.core.oal.DOFConnection.StreamRequest)
for any given StreamRequest.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object