lc
Class LC
java.lang.Object
lc.LC
public class LC
- extends java.lang.Object
Lightweight Communications implementation
Constructor Summary |
LC()
Create an LC instance using default options (or environment variable LC_MCADDR if available.) |
LC(java.lang.String addr,
int port,
int ttl)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LC
public LC()
throws java.io.IOException
- Create an LC instance using default options (or environment variable LC_MCADDR if available.)
- Throws:
java.io.IOException
LC
public LC(java.lang.String addr,
int port,
int ttl)
throws java.io.IOException
- Throws:
java.io.IOException
getSingleton
public static LC getSingleton()
throws java.io.IOException
- Throws:
java.io.IOException
publish
public void publish(java.lang.String channel,
java.lang.String s)
throws java.io.IOException
- Throws:
java.io.IOException
publish
public void publish(java.lang.String channel,
LCEncodable e)
throws java.io.IOException
- Throws:
java.io.IOException
publish
public void publish(java.lang.String channel,
byte[] data,
int offset,
int length)
throws java.io.IOException
- Throws:
java.io.IOException
subscribe
public void subscribe(java.lang.String channel,
LCSubscriber sub)
subscribeAll
public void subscribeAll(LCSubscriber sub)
main
public static void main(java.lang.String[] args)