org.apache.catalina.tribes.MessageListener Java Examples
The following examples show how to use
org.apache.catalina.tribes.MessageListener.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: McastServiceImpl.java From tomcatsrc with Apache License 2.0 | 5 votes |
/** * Create a new mcast service impl * @param member - the local member * @param sendFrequency - the time (ms) in between pings sent out * @param expireTime - the time (ms) for a member to expire * @param port - the mcast port * @param bind - the bind address (not sure this is used yet) * @param mcastAddress - the mcast address * @param service - the callback service * @param localLoopbackDisabled - disable loopbackMode * @throws IOException */ public McastServiceImpl( MemberImpl member, long sendFrequency, long expireTime, int port, InetAddress bind, InetAddress mcastAddress, int ttl, int soTimeout, MembershipListener service, MessageListener msgservice, boolean localLoopbackDisabled) throws IOException { this.member = member; this.address = mcastAddress; this.port = port; this.mcastSoTimeout = soTimeout; this.mcastTTL = ttl; this.mcastBindAddress = bind; this.timeToExpiration = expireTime; this.service = service; this.msgservice = msgservice; this.sendFrequency = sendFrequency; this.localLoopbackDisabled = localLoopbackDisabled; init(); }
Example #2
Source File: McastServiceImpl.java From Tomcat8-Source-Read with MIT License | 5 votes |
/** * Create a new mcast service instance. * @param member - the local member * @param sendFrequency - the time (ms) in between pings sent out * @param expireTime - the time (ms) for a member to expire * @param port - the mcast port * @param bind - the bind address (not sure this is used yet) * @param mcastAddress - the mcast address * @param ttl multicast ttl that will be set on the socket * @param soTimeout Socket timeout * @param service - the callback service * @param msgservice Message listener * @param localLoopbackDisabled - disable loopbackMode * @throws IOException Init error */ public McastServiceImpl( MemberImpl member, long sendFrequency, long expireTime, int port, InetAddress bind, InetAddress mcastAddress, int ttl, int soTimeout, MembershipListener service, MessageListener msgservice, boolean localLoopbackDisabled) throws IOException { this.member = member; this.address = mcastAddress; this.port = port; this.mcastSoTimeout = soTimeout; this.mcastTTL = ttl; this.mcastBindAddress = bind; this.timeToExpiration = expireTime; this.service = service; this.msgservice = msgservice; this.sendFrequency = sendFrequency; this.localLoopbackDisabled = localLoopbackDisabled; init(); }
Example #3
Source File: McastServiceImpl.java From Tomcat7.0.67 with Apache License 2.0 | 5 votes |
/** * Create a new mcast service impl * @param member - the local member * @param sendFrequency - the time (ms) in between pings sent out * @param expireTime - the time (ms) for a member to expire * @param port - the mcast port * @param bind - the bind address (not sure this is used yet) * @param mcastAddress - the mcast address * @param service - the callback service * @param localLoopbackDisabled - disable loopbackMode * @throws IOException */ public McastServiceImpl( MemberImpl member, long sendFrequency, long expireTime, int port, InetAddress bind, InetAddress mcastAddress, int ttl, int soTimeout, MembershipListener service, MessageListener msgservice, boolean localLoopbackDisabled) throws IOException { this.member = member; this.address = mcastAddress; this.port = port; this.mcastSoTimeout = soTimeout; this.mcastTTL = ttl; this.mcastBindAddress = bind; this.timeToExpiration = expireTime; this.service = service; this.msgservice = msgservice; this.sendFrequency = sendFrequency; this.localLoopbackDisabled = localLoopbackDisabled; init(); }
Example #4
Source File: ReceiverBase.java From Tomcat7.0.67 with Apache License 2.0 | 4 votes |
public void setListener(MessageListener listener) { this.listener = listener; }
Example #5
Source File: McastService.java From tomcatsrc with Apache License 2.0 | 4 votes |
public void setMessageListener(MessageListener listener) { this.msglistener = listener; }
Example #6
Source File: ReceiverBase.java From tomcatsrc with Apache License 2.0 | 4 votes |
public void setListener(MessageListener listener) { this.listener = listener; }
Example #7
Source File: ReceiverBase.java From tomcatsrc with Apache License 2.0 | 4 votes |
public MessageListener getListener() { return listener; }
Example #8
Source File: McastService.java From Tomcat7.0.67 with Apache License 2.0 | 4 votes |
public void setMessageListener(MessageListener listener) { this.msglistener = listener; }
Example #9
Source File: ReceiverBase.java From Tomcat7.0.67 with Apache License 2.0 | 4 votes |
public MessageListener getListener() { return listener; }
Example #10
Source File: McastService.java From Tomcat8-Source-Read with MIT License | 4 votes |
public void setMessageListener(MessageListener listener) { this.msglistener = listener; }
Example #11
Source File: ReceiverBase.java From Tomcat8-Source-Read with MIT License | 4 votes |
public void setListener(MessageListener listener) { this.listener = listener; }
Example #12
Source File: ReceiverBase.java From Tomcat8-Source-Read with MIT License | 4 votes |
public MessageListener getListener() { return listener; }
Example #13
Source File: ReceiverBase.java From Tomcat8-Source-Read with MIT License | 2 votes |
/** * getMessageListener * * @return MessageListener */ @Override public MessageListener getMessageListener() { return listener; }
Example #14
Source File: ReceiverBase.java From Tomcat7.0.67 with Apache License 2.0 | 2 votes |
/** * setMessageListener * * @param listener MessageListener * TODO Implement this org.apache.catalina.tribes.ChannelReceiver method */ @Override public void setMessageListener(MessageListener listener) { this.listener = listener; }
Example #15
Source File: ReceiverBase.java From Tomcat7.0.67 with Apache License 2.0 | 2 votes |
/** * getMessageListener * * @return MessageListener * TODO Implement this org.apache.catalina.tribes.ChannelReceiver method */ @Override public MessageListener getMessageListener() { return listener; }
Example #16
Source File: ReceiverBase.java From tomcatsrc with Apache License 2.0 | 2 votes |
/** * getMessageListener * * @return MessageListener */ @Override public MessageListener getMessageListener() { return listener; }
Example #17
Source File: ReceiverBase.java From tomcatsrc with Apache License 2.0 | 2 votes |
/** * setMessageListener * * @param listener MessageListener */ @Override public void setMessageListener(MessageListener listener) { this.listener = listener; }
Example #18
Source File: ReceiverBase.java From Tomcat8-Source-Read with MIT License | 2 votes |
/** * setMessageListener * * @param listener MessageListener */ @Override public void setMessageListener(MessageListener listener) { this.listener = listener; }