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()
Endpointpublic void close()
Endpointpublic EndpointState getLocalState()
getLocalState in interface Endpointpublic EndpointState getRemoteState()
getRemoteState in interface Endpointpublic ErrorCondition getCondition()
getCondition in interface Endpointpublic void setCondition(ErrorCondition condition)
EndpointsetCondition in interface Endpointpublic ErrorCondition getRemoteCondition()
getRemoteCondition in interface Endpointprotected abstract ConnectionImpl getConnectionImpl()
public final void free()
Endpointpublic java.lang.Object getContext()
getContext in interface EndpointEndpoint.setContext(Object)public void setContext(java.lang.Object context)
EndpointsetContext in interface Endpointpublic Record attachments()
attachments in interface Extendable