public abstract class EndpointImpl extends java.lang.Object implements ProtonJEndpoint
| Modifier and Type | Field and Description |
|---|---|
private Record |
_attachments |
private java.lang.Object |
_context |
private ErrorCondition |
_localError |
private EndpointState |
_localState |
private boolean |
_modified |
private ErrorCondition |
_remoteError |
private EndpointState |
_remoteState |
private EndpointImpl |
_transportNext |
private EndpointImpl |
_transportPrev |
(package private) boolean |
freed |
private int |
refcount |
| Constructor and Description |
|---|
EndpointImpl() |
| Modifier and Type | Method and Description |
|---|---|
Record |
attachments() |
(package private) void |
clearModified() |
void |
close()
transition local state to CLOSED
|
(package private) void |
decref() |
(package private) abstract void |
doFree() |
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() |
(package private) void |
incref() |
(package private) boolean |
isModified() |
(package private) abstract void |
localClose() |
(package private) abstract void |
localOpen() |
(package private) void |
modified() |
(package private) void |
modified(boolean emit) |
void |
open()
transition local state to ACTIVE
|
(package private) abstract void |
postFinal() |
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.
|
(package private) void |
setLocalState(EndpointState localState) |
(package private) void |
setRemoteState(EndpointState remoteState) |
(package private) void |
setTransportNext(EndpointImpl transportNext) |
(package private) void |
setTransportPrev(EndpointImpl transportPrevious) |
(package private) EndpointImpl |
transportNext() |
(package private) EndpointImpl |
transportPrev() |
private EndpointState _localState
private EndpointState _remoteState
private ErrorCondition _localError
private ErrorCondition _remoteError
private boolean _modified
private EndpointImpl _transportNext
private EndpointImpl _transportPrev
private java.lang.Object _context
private Record _attachments
private int refcount
boolean freed
void incref()
void decref()
abstract void postFinal()
abstract void localOpen()
abstract void localClose()
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 Endpointvoid setLocalState(EndpointState localState)
void setRemoteState(EndpointState remoteState)
void modified()
void modified(boolean emit)
protected abstract ConnectionImpl getConnectionImpl()
void clearModified()
boolean isModified()
EndpointImpl transportNext()
EndpointImpl transportPrev()
abstract void doFree()
public final void free()
Endpointvoid setTransportNext(EndpointImpl transportNext)
void setTransportPrev(EndpointImpl transportPrevious)
public 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