Package org.jgroups.mux
Class Multiplexer
java.lang.Object
org.jgroups.mux.Multiplexer
- All Implemented Interfaces:
UpHandler
Deprecated.
The multiplexer allows multiple channel interfaces to be associated with one
underlying instance of JChannel.
The multiplexer is essentially a building block residing on top of a JChannel providing multiplexing functionality to N instances of MuxChannel. Since MuxChannel extends the JGroups JChannel class, user applications are completely unaware of this change in the underlying plumbing.
Each JGroups application sharing a channel through a multiplexer has to create a MuxChannel with a unique application id. The multiplexer keeps track of all registered applications and tags messages belonging to a specific application with that id for sent messages. When receiving a message from a remote peer, the multiplexer will dispatch a message to the appropriate MuxChannel depending on the id attached to the message.
- Author:
- Bela Ban, Vladimir Blagojevic
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanclose()Deprecated.voidcloseAll()Deprecated.createMuxChannel(String id, String stack_name) Deprecated.protected ThreadPoolExecutorDeprecated.Deprecated.Use ${link #getServiceIds()} insteadlongDeprecated.Deprecated.longDeprecated.voidregisterForStateTransfer(String appl_id, String substate_id) Deprecated.protected MuxChannelremoveService(String id) Deprecated.voidsetServiceAckTimeout(long service_ack_timeout) Deprecated.voidsetServicesResponseTimeout(long services_rsp_timeout) Deprecated.protected voidDeprecated.Deprecated.Remove mux header and dispatch to correct MuxChannel
-
Field Details
-
service_ack_timeout
protected long service_ack_timeoutDeprecated.
-
-
Constructor Details
-
Multiplexer
Deprecated.
-
-
Method Details
-
getApplicationIds
Deprecated.Use ${link #getServiceIds()} instead- Returns:
- The set of service IDs
-
getServiceIds
Deprecated. -
getServicesResponseTimeout
public long getServicesResponseTimeout()Deprecated. -
setServicesResponseTimeout
public void setServicesResponseTimeout(long services_rsp_timeout) Deprecated. -
getServiceAckTimeout
public long getServiceAckTimeout()Deprecated. -
setServiceAckTimeout
public void setServiceAckTimeout(long service_ack_timeout) Deprecated. -
registerForStateTransfer
Deprecated. -
createThreadPool
Deprecated. -
shutdownThreadPool
protected void shutdownThreadPool()Deprecated. -
up
Deprecated.Remove mux header and dispatch to correct MuxChannel -
createMuxChannel
Deprecated.- Throws:
Exception
-
removeService
Deprecated. -
close
public boolean close()Deprecated. -
closeAll
public void closeAll()Deprecated.
-