RefCountingBus¶
-
public class
RefCountingBusextends AbstractActivatable implements Bus¶ A reference counting decorator for
Businstances. The wrapped instance is activated only to the first call toactivate()and deactivated only when as manydeactivate()calls are received as have been activate calls received.- Author
jwienke
Constructors¶
RefCountingBus¶
-
public
RefCountingBus(Bus bus, DeactivationHandler handler)¶ Constructor.
- Parameters
bus – bus to manage
handler – handler to be called on deactivation of the bus
Methods¶
addNotificationReceiver¶
-
public void
addNotificationReceiver(NotificationReceiver receiver)¶
getContainedBus¶
getSocketOptions¶
-
public SocketOptions
getSocketOptions()¶
removeNotificationReceiver¶
-
public void
removeNotificationReceiver(NotificationReceiver receiver)¶