public abstract class EndpointImpl extends java.lang.Object implements ProtonJEndpoint
Constructor and Description |
---|
EndpointImpl() |
Modifier and Type | Method and Description |
---|---|
Record |
attachments() |
void |
close()
transition local state to CLOSED
|
void |
free()
free the endpoint and any associated resources
|
ErrorCondition |
getCondition() |
protected abstract ConnectionImpl |
getConnectionImpl() |
java.lang.Object |
getContext() |
EndpointState |
getLocalState() |
ErrorCondition |
getRemoteCondition() |
EndpointState |
getRemoteState() |
void |
open()
transition local state to ACTIVE
|
void |
setCondition(ErrorCondition condition)
Set the local error condition
|
void |
setContext(java.lang.Object context)
Sets an arbitrary an application owned object on the end-point.
|
public void open()
Endpoint
public void close()
Endpoint
public EndpointState getLocalState()
getLocalState
in interface Endpoint
public EndpointState getRemoteState()
getRemoteState
in interface Endpoint
public ErrorCondition getCondition()
getCondition
in interface Endpoint
public void setCondition(ErrorCondition condition)
Endpoint
setCondition
in interface Endpoint
public ErrorCondition getRemoteCondition()
getRemoteCondition
in interface Endpoint
protected abstract ConnectionImpl getConnectionImpl()
public final void free()
Endpoint
public java.lang.Object getContext()
getContext
in interface Endpoint
Endpoint.setContext(Object)
public void setContext(java.lang.Object context)
Endpoint
setContext
in interface Endpoint
public Record attachments()
attachments
in interface Extendable