public abstract class AbstractConnectionClient extends AbstractClient
| 限定符和类型 | 方法和说明 |
|---|---|
abstract void |
addCloseListener(Runnable func)
add the listener of close connection event.
|
abstract void |
createConnectingPromise()
create connecting promise.
|
abstract void |
destroy()
This method will be invoked when counter reaches 0, override this method to destroy materials related to the specific resource.
|
abstract Object |
getChannel(Boolean generalizable)
if generalizable, return NIOChannel
else return Dubbo Channel
|
long |
getCounter()
Get counter
|
abstract boolean |
isAvailable()
connection is available.
|
abstract void |
onConnected(Object channel)
when connected, callback.
|
abstract void |
onGoaway(Object channel)
when goaway, callback.
|
boolean |
release()
Decreases the reference count by 1 and calls
this#destroy if the reference count reaches 0. |
AbstractConnectionClient |
retain()
Increments the reference count by 1.
|
close, close, disconnect, getAttribute, getConnectAddress, getLocalAddress, getRemoteAddress, hasAttribute, isConnected, reconnect, removeAttribute, send, setAttribute, toStringreset, resetcaught, connected, disconnected, getChannelHandler, getDelegateHandler, getHandler, getUrl, isClosed, isClosing, received, send, sent, startClosegetChannelHandler, getUrl, isClosed, send, startClosecanHandleIdlepublic final AbstractConnectionClient retain()
public final boolean release()
this#destroy if the reference count reaches 0.public abstract boolean isAvailable()
public abstract void createConnectingPromise()
public abstract void addCloseListener(Runnable func)
func - execute functionpublic abstract void onConnected(Object channel)
channel - Channelpublic abstract void onGoaway(Object channel)
channel - Channelpublic abstract void destroy()
public abstract Object getChannel(Boolean generalizable)
generalizable - generalizablepublic long getCounter()
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.