Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

java_nats_0.4.3

  • Loading branch information...
commit 490ab21fa12e3d68f95f05f82f5c6f0dea3b0559 1 parent cd6d13f
@tyagihas authored
Showing with 641 additions and 545 deletions.
  1. +26 −26 README.md
  2. +6 −7 benchmark/org/nats/benchmark/PubPerf.java
  3. +10 −10 benchmark/org/nats/benchmark/PubSubPerf.java
  4. +1 −1  bin/PubPerf.bat
  5. +2 −1  bin/compile.sh
  6. +3 −3 doc/allclasses-frame.html
  7. +3 −3 doc/allclasses-noframe.html
  8. +32 −46 doc/constant-values.html
  9. +2 −2 doc/deprecated-list.html
  10. +2 −2 doc/help-doc.html
  11. +4 −4 doc/index-files/index-1.html
  12. +13 −13 doc/index-files/index-10.html
  13. +2 −2 doc/index-files/index-11.html
  14. +9 −11 doc/index-files/index-12.html
  15. +10 −14 doc/index-files/index-13.html
  16. +3 −3 doc/index-files/index-14.html
  17. +5 −5 doc/index-files/index-15.html
  18. +3 −5 doc/index-files/index-16.html
  19. +12 −8 doc/index-files/index-2.html
  20. +6 −6 doc/index-files/index-3.html
  21. +4 −4 doc/index-files/index-4.html
  22. +4 −4 doc/index-files/index-5.html
  23. +3 −3 doc/index-files/index-6.html
  24. +6 −6 doc/index-files/index-7.html
  25. +5 −7 doc/index-files/index-8.html
  26. +3 −3 doc/index-files/index-9.html
  27. +1 −1  doc/index.html
  28. +94 −122 doc/org/nats/{Session.html → Connection.html}
  29. +7 −20 doc/org/nats/MsgHandler.html
  30. +2 −2 doc/org/nats/benchmark/PubPerf.html
  31. +2 −2 doc/org/nats/benchmark/PubSubPerf.html
  32. +2 −2 doc/org/nats/benchmark/class-use/PubPerf.html
  33. +2 −2 doc/org/nats/benchmark/class-use/PubSubPerf.html
  34. +2 −2 doc/org/nats/benchmark/package-frame.html
  35. +2 −2 doc/org/nats/benchmark/package-summary.html
  36. +2 −2 doc/org/nats/benchmark/package-tree.html
  37. +2 −2 doc/org/nats/benchmark/package-use.html
  38. +157 −0 doc/org/nats/class-use/Connection.html
  39. +11 −11 doc/org/nats/class-use/MsgHandler.html
  40. +2 −2 doc/org/nats/class-use/Session.html
  41. +2 −2 doc/org/nats/examples/AutoUnsub.html
  42. +2 −2 doc/org/nats/examples/Expected.html
  43. +2 −2 doc/org/nats/examples/MultiConnection.html
  44. +2 −2 doc/org/nats/examples/Pub.html
  45. +2 −2 doc/org/nats/examples/QueueSub.html
  46. +2 −2 doc/org/nats/examples/Request.html
  47. +2 −2 doc/org/nats/examples/Sub.html
  48. +2 −2 doc/org/nats/examples/SubTimeout.html
  49. +2 −2 doc/org/nats/examples/SubUnsub.html
  50. +2 −2 doc/org/nats/examples/class-use/AutoUnsub.html
  51. +2 −2 doc/org/nats/examples/class-use/Expected.html
  52. +2 −2 doc/org/nats/examples/class-use/MultiConnection.html
  53. +2 −2 doc/org/nats/examples/class-use/Pub.html
  54. +2 −2 doc/org/nats/examples/class-use/QueueSub.html
  55. +2 −2 doc/org/nats/examples/class-use/Request.html
  56. +2 −2 doc/org/nats/examples/class-use/Sub.html
  57. +2 −2 doc/org/nats/examples/class-use/SubTimeout.html
  58. +2 −2 doc/org/nats/examples/class-use/SubUnsub.html
  59. +2 −2 doc/org/nats/examples/package-frame.html
  60. +2 −2 doc/org/nats/examples/package-summary.html
  61. +2 −2 doc/org/nats/examples/package-tree.html
  62. +2 −2 doc/org/nats/examples/package-use.html
  63. +3 −3 doc/org/nats/package-frame.html
  64. +6 −6 doc/org/nats/package-summary.html
  65. +3 −3 doc/org/nats/package-tree.html
  66. +6 −6 doc/org/nats/package-use.html
  67. +2 −2 doc/overview-frame.html
  68. +2 −2 doc/overview-summary.html
  69. +3 −3 doc/overview-tree.html
  70. +6 −6 examples/org/nats/examples/AutoUnsub.java
  71. +6 −6 examples/org/nats/examples/Expected.java
  72. +11 −11 examples/org/nats/examples/MultiConnection.java
  73. +8 −6 examples/org/nats/examples/Pub.java
  74. +5 −5 examples/org/nats/examples/QueueSub.java
  75. +5 −5 examples/org/nats/examples/Request.java
  76. +5 −5 examples/org/nats/examples/Sub.java
  77. +6 −6 examples/org/nats/examples/SubTimeout.java
  78. +5 −5 examples/org/nats/examples/SubUnsub.java
  79. +43 −49 lib/org/nats/{Session.java → Connection.java}
  80. +5 −1 lib/org/nats/MsgHandler.java
View
52 README.md
@@ -36,66 +36,66 @@ cd ./bin
import java.util.Properties;
import org.nats.*;
...
-Session session = Session.connect(new Properties());
-session.start();
+Connection conn = Connection.connect(new Properties());
+conn.start();
// Simple Publisher
-session.publish("foo", "Hello World!", null, null);
+conn.publish("foo", "Hello World!", null, null);
// Simple Subscriber
-session.subscribe("foo", new MsgHandler() {
+conn.subscribe("foo", new MsgHandler() {
public void execute(String msg) {
System.out.println("Received a message: " + msg);
}
});
// Unsubscribing
-Integer sid = session.subscribe("foo", new MsgHandler() {
+Integer sid = conn.subscribe("foo", new MsgHandler() {
public void execute(String msg) {
System.out.println("Received a message: " + msg);
}
});
-session.unsubscribe(sid);
+conn.unsubscribe(sid);
// Requests
-sid = session.request("help", new MsgHandler() {
+sid = conn.request("help", new MsgHandler() {
public void execute(String response) {
System.out.println("Got a response for help : " + reponse);
}
});
// Replies
-session.subscribe("help", new MsgHandler() {
+conn.subscribe("help", new MsgHandler() {
public void execute(String request, String replyTo) {
try {
- session.publish(replyTo, "I can help!");
+ conn.publish(replyTo, "I can help!");
} catch (IOException e) {
e.printStackTrace();
}
}
});
-session.flush();
-session.stop();
+conn.flush();
+conn.stop();
```
## Wildcard Subcriptions
```javascript
// "*" matches any token, at any level of the subject.
-session.subscribe("foo.*.baz", new MsgHandler() {
+conn.subscribe("foo.*.baz", new MsgHandler() {
public void execute(String msg, String reply, String subject) {
System.out.println("Received a message on [" + subject + "] : " + msg);
}
});
-session.subscribe("foo.bar.*", new MsgHandler() {
+conn.subscribe("foo.bar.*", new MsgHandler() {
public void execute(String msg, String reply, String subject) {
System.out.println("Received a message on [" + subject + "] : " + msg);
}
});
-session.subscribe("*.bar.*", new MsgHandler() {
+conn.subscribe("*.bar.*", new MsgHandler() {
public void execute(String msg, String reply, String subject) {
System.out.println("Received a message on [" + subject + "] : " + msg);
}
@@ -103,7 +103,7 @@ session.subscribe("*.bar.*", new MsgHandler() {
// ">" matches any length of the tail of a subject, and can only be the last token
// E.g. 'foo.>' will match 'foo.bar', 'foo.bar.baz', 'foo.foo.bar.bax.22'
-session.subscribe("foo.>", new MsgHandler() {
+conn.subscribe("foo.>", new MsgHandler() {
public void execute(String msg, String reply, String subject) {
System.out.println("Received a message on [" + subject + "] : " + msg);
}
@@ -119,7 +119,7 @@ session.subscribe("foo.>", new MsgHandler() {
// Normal subscribers will continue to work as expected.
Properties opt = new Properties();
opt.setProperty("queue", "job.workers");
-session.subscribe(args[0], opt, new MsgHandler() {
+conn.subscribe(args[0], opt, new MsgHandler() {
public void execute(String msg) {
System.out.println("Received update : " + msg);
}
@@ -130,20 +130,20 @@ session.subscribe(args[0], opt, new MsgHandler() {
```javascript
// Publish with closure, callback fires when server has processed the message
-session.publish("foo", "You done?", new MsgHandler() {
+conn.publish("foo", "You done?", new MsgHandler() {
public void execute() {
System.out.println("Message processed!");
}
});
// Timeouts for subscriptions
-Integer sid = session.subscribe("foo", new MsgHandler() {
+Integer sid = conn.subscribe("foo", new MsgHandler() {
int received = 0;
public void execute() {
received++;
}
});
-session.timeout(sid, TIMEOUT_IN_SECS, new MsgHandler() {
+conn.timeout(sid, TIMEOUT_IN_SECS, new MsgHandler() {
public void execute() {
timeout_recv = true;
}
@@ -152,29 +152,29 @@ session.timeout(sid, TIMEOUT_IN_SECS, new MsgHandler() {
// Timeout unless a certain number of messages have been received
Properties opt = new Properties();
opt.put("expected", new Integer(2));
-session.timeout(sid, 10, opt, new MsgHandler() {
+conn.timeout(sid, 10, opt, new MsgHandler() {
public void execute(Object o) {
timeout_recv = true;
}
});
// Auto-unsubscribe after MAX_WANTED messages received
-session.unsubscribe(sid, MAX_WANTED)
+conn.unsubscribe(sid, MAX_WANTED)
// Multiple connections
-session1.subscribe("test", new MsgHandler() {
+conn1.subscribe("test", new MsgHandler() {
public void execute(String msg) {
System.out.println("received : " + msg);
}
});
// Form second connection to send message on
-Session session2 = Session.connect(new Properties());
-session2.start(new MsgHandler() {
+Connection conn2 = Connection.connect(new Properties());
+conn2.start(new MsgHandler() {
public void execute(Object o) {
- Session session = (Session)o;
+ Connection conn = (Connection)o;
try {
- session.publish("test", "Hello World!");
+ conn.publish("test", "Hello World!");
} catch (IOException e) {
e.printStackTrace();
}
View
13 benchmark/org/nats/benchmark/PubPerf.java
@@ -14,19 +14,18 @@ public static void main(String[] args) throws Exception {
for(int l = 0; l < size; l++) val+="a";
Properties prop = new Properties();
- Session session = Session.connect(prop);
- session.start();
+ Connection conn = Connection.connect(prop);
+ conn.start();
System.out.println("Performing Publish performance test");
final long start = System.nanoTime();
for(int i = 1; i <= loop; i++) {
- session.publish("hello", null, val, null);
- // session.publish("hello", null, new Integer(i).toString(), null);
+ conn.publish("hello", null, val, null);
if (i % hash == 0)
System.out.print("+");
}
- session.flush(new MsgHandler() {
+ conn.flush(new MsgHandler() {
public void execute(Object o) {
double elapsed = System.nanoTime() - start;
System.out.println("\nelapsed : " + Double.toString(elapsed / 1000000000) + " seconds");
@@ -34,7 +33,7 @@ public void execute(Object o) {
}
});
- session.stop();
+ conn.stop();
System.exit(0);
- }
+ }
}
View
20 benchmark/org/nats/benchmark/PubSubPerf.java
@@ -15,14 +15,14 @@ public static void main(String[] args) throws Exception {
for(int l = 0; l < size; l++) buf.append("a");
final String val = buf.toString();
- final Session session1 = Session.connect(new Properties());
- session1.start();
- final Session session2 = Session.connect(new Properties());
- session2.start();
+ final Connection conn1 = Connection.connect(new Properties());
+ conn1.start();
+ final Connection conn2 = Connection.connect(new Properties());
+ conn2.start();
System.out.println("Performing Publish/Subscribe performance test");
final long start = System.nanoTime();
- session1.subscribe("test", new MsgHandler() {
+ conn1.subscribe("test", new MsgHandler() {
int received = 0;
public void execute(Object o) {
received++;
@@ -39,17 +39,17 @@ public void execute(Object o) {
}
});
- session1.flush(new MsgHandler() {
+ conn1.flush(new MsgHandler() {
public void execute(Object o) {
try {
for(int i = 1; i <= loop; i++) {
- session2.publish("test", val);
- // session2.publish("test", "aaaa\r\nbbbb\r\ncccc\r\ndddd\r\n");
- // session2.publish("test", new Integer(i).toString());
+ conn2.publish("test", val);
+ // conn2.publish("test", "aaaa\r\nbbbb\r\ncccc\r\ndddd\r\n");
+ // conn2.publish("test", new Integer(i).toString());
if (i % hash == 0)
System.out.print("+");
}
- session2.flush();
+ conn2.flush();
} catch(Exception e) {e.printStackTrace();}
}
});
View
2  bin/PubPerf.bat
@@ -1,6 +1,6 @@
SET PATH="C:\Program Files\Java\jdk1.7.0_04\bin"
SET CLASSPATH=.
-java -agentlib:hprof=heap=sites -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -ms512m -mx512m org.nats.benchmark.PubPerf 100000 1024
+java -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -ms512m -mx512m org.nats.benchmark.PubPerf 100000 1024
pause
View
3  bin/compile.sh
@@ -1,3 +1,4 @@
-javac -d . ../lib/org/nats/Session.java
+javac -d . ../lib/org/nats/*.java
javac -d . ../benchmark/org/nats/benchmark/*.java
+javac -d . ../examples/org/nats/examples/*.java
View
6 doc/allclasses-frame.html
@@ -2,9 +2,9 @@
<!-- NewPage -->
<html lang="en">
<head>
-<!-- Generated by javadoc (version 1.7.0_04) on Fri Aug 31 19:22:48 JST 2012 -->
+<!-- Generated by javadoc (version 1.7.0_04) on Wed Sep 26 15:00:40 JST 2012 -->
<title>All Classes</title>
-<meta name="date" content="2012-08-31">
+<meta name="date" content="2012-09-26">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
</head>
<body>
@@ -12,6 +12,7 @@ <h1 class="bar">All Classes</h1>
<div class="indexContainer">
<ul>
<li><a href="org/nats/examples/AutoUnsub.html" title="class in org.nats.examples" target="classFrame">AutoUnsub</a></li>
+<li><a href="org/nats/Connection.html" title="class in org.nats" target="classFrame">Connection</a></li>
<li><a href="org/nats/examples/Expected.html" title="class in org.nats.examples" target="classFrame">Expected</a></li>
<li><a href="org/nats/MsgHandler.html" title="class in org.nats" target="classFrame">MsgHandler</a></li>
<li><a href="org/nats/examples/MultiConnection.html" title="class in org.nats.examples" target="classFrame">MultiConnection</a></li>
@@ -20,7 +21,6 @@ <h1 class="bar">All Classes</h1>
<li><a href="org/nats/benchmark/PubSubPerf.html" title="class in org.nats.benchmark" target="classFrame">PubSubPerf</a></li>
<li><a href="org/nats/examples/QueueSub.html" title="class in org.nats.examples" target="classFrame">QueueSub</a></li>
<li><a href="org/nats/examples/Request.html" title="class in org.nats.examples" target="classFrame">Request</a></li>
-<li><a href="org/nats/Session.html" title="class in org.nats" target="classFrame">Session</a></li>
<li><a href="org/nats/examples/Sub.html" title="class in org.nats.examples" target="classFrame">Sub</a></li>
<li><a href="org/nats/examples/SubTimeout.html" title="class in org.nats.examples" target="classFrame">SubTimeout</a></li>
<li><a href="org/nats/examples/SubUnsub.html" title="class in org.nats.examples" target="classFrame">SubUnsub</a></li>
View
6 doc/allclasses-noframe.html
@@ -2,9 +2,9 @@
<!-- NewPage -->
<html lang="en">
<head>
-<!-- Generated by javadoc (version 1.7.0_04) on Fri Aug 31 19:22:48 JST 2012 -->
+<!-- Generated by javadoc (version 1.7.0_04) on Wed Sep 26 15:00:40 JST 2012 -->
<title>All Classes</title>
-<meta name="date" content="2012-08-31">
+<meta name="date" content="2012-09-26">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
</head>
<body>
@@ -12,6 +12,7 @@ <h1 class="bar">All Classes</h1>
<div class="indexContainer">
<ul>
<li><a href="org/nats/examples/AutoUnsub.html" title="class in org.nats.examples">AutoUnsub</a></li>
+<li><a href="org/nats/Connection.html" title="class in org.nats">Connection</a></li>
<li><a href="org/nats/examples/Expected.html" title="class in org.nats.examples">Expected</a></li>
<li><a href="org/nats/MsgHandler.html" title="class in org.nats">MsgHandler</a></li>
<li><a href="org/nats/examples/MultiConnection.html" title="class in org.nats.examples">MultiConnection</a></li>
@@ -20,7 +21,6 @@ <h1 class="bar">All Classes</h1>
<li><a href="org/nats/benchmark/PubSubPerf.html" title="class in org.nats.benchmark">PubSubPerf</a></li>
<li><a href="org/nats/examples/QueueSub.html" title="class in org.nats.examples">QueueSub</a></li>
<li><a href="org/nats/examples/Request.html" title="class in org.nats.examples">Request</a></li>
-<li><a href="org/nats/Session.html" title="class in org.nats">Session</a></li>
<li><a href="org/nats/examples/Sub.html" title="class in org.nats.examples">Sub</a></li>
<li><a href="org/nats/examples/SubTimeout.html" title="class in org.nats.examples">SubTimeout</a></li>
<li><a href="org/nats/examples/SubUnsub.html" title="class in org.nats.examples">SubUnsub</a></li>
View
78 doc/constant-values.html
@@ -2,9 +2,9 @@
<!-- NewPage -->
<html lang="en">
<head>
-<!-- Generated by javadoc (version 1.7.0_04) on Fri Aug 31 19:22:48 JST 2012 -->
+<!-- Generated by javadoc (version 1.7.0_04) on Wed Sep 26 15:00:40 JST 2012 -->
<title>Constant Field Values</title>
-<meta name="date" content="2012-08-31">
+<meta name="date" content="2012-09-26">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
</head>
<body>
@@ -76,7 +76,7 @@ <h2 title="org.nats">org.nats.*</h2>
<ul class="blockList">
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Constant Field Values table, listing constant fields, and values">
-<caption><span>org.nats.<a href="org/nats/Session.html" title="class in org.nats">Session</a></span><span class="tabEnd">&nbsp;</span></caption>
+<caption><span>org.nats.<a href="org/nats/Connection.html" title="class in org.nats">Connection</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th scope="col">Constant Field</th>
@@ -84,109 +84,95 @@ <h2 title="org.nats">org.nats.*</h2>
</tr>
<tbody>
<tr class="altColor">
-<td class="colFirst"><a name="org.nats.Session.AWAITING_CONTROL">
+<td class="colFirst"><a name="org.nats.Connection.AWAITING_CONTROL">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
-<td><code><a href="org/nats/Session.html#AWAITING_CONTROL">AWAITING_CONTROL</a></code></td>
+<td><code><a href="org/nats/Connection.html#AWAITING_CONTROL">AWAITING_CONTROL</a></code></td>
<td class="colLast"><code>0</code></td>
</tr>
<tr class="rowColor">
-<td class="colFirst"><a name="org.nats.Session.AWAITING_MSG_PAYLOAD">
+<td class="colFirst"><a name="org.nats.Connection.AWAITING_MSG_PAYLOAD">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
-<td><code><a href="org/nats/Session.html#AWAITING_MSG_PAYLOAD">AWAITING_MSG_PAYLOAD</a></code></td>
+<td><code><a href="org/nats/Connection.html#AWAITING_MSG_PAYLOAD">AWAITING_MSG_PAYLOAD</a></code></td>
<td class="colLast"><code>1</code></td>
</tr>
<tr class="altColor">
-<td class="colFirst"><a name="org.nats.Session.CR_LF">
+<td class="colFirst"><a name="org.nats.Connection.CR_LF">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;java.lang.String</code></td>
-<td><code><a href="org/nats/Session.html#CR_LF">CR_LF</a></code></td>
+<td><code><a href="org/nats/Connection.html#CR_LF">CR_LF</a></code></td>
<td class="colLast"><code>"\r\n"</code></td>
</tr>
<tr class="rowColor">
-<td class="colFirst"><a name="org.nats.Session.DEFAULT_MAX_RECONNECT_ATTEMPTS">
+<td class="colFirst"><a name="org.nats.Connection.DEFAULT_MAX_RECONNECT_ATTEMPTS">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
-<td><code><a href="org/nats/Session.html#DEFAULT_MAX_RECONNECT_ATTEMPTS">DEFAULT_MAX_RECONNECT_ATTEMPTS</a></code></td>
+<td><code><a href="org/nats/Connection.html#DEFAULT_MAX_RECONNECT_ATTEMPTS">DEFAULT_MAX_RECONNECT_ATTEMPTS</a></code></td>
<td class="colLast"><code>10</code></td>
</tr>
<tr class="altColor">
-<td class="colFirst"><a name="org.nats.Session.DEFAULT_PORT">
+<td class="colFirst"><a name="org.nats.Connection.DEFAULT_PORT">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
-<td><code><a href="org/nats/Session.html#DEFAULT_PORT">DEFAULT_PORT</a></code></td>
+<td><code><a href="org/nats/Connection.html#DEFAULT_PORT">DEFAULT_PORT</a></code></td>
<td class="colLast"><code>4222</code></td>
</tr>
<tr class="rowColor">
-<td class="colFirst"><a name="org.nats.Session.DEFAULT_RECONNECT_TIME_WAIT">
+<td class="colFirst"><a name="org.nats.Connection.DEFAULT_RECONNECT_TIME_WAIT">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
-<td><code><a href="org/nats/Session.html#DEFAULT_RECONNECT_TIME_WAIT">DEFAULT_RECONNECT_TIME_WAIT</a></code></td>
+<td><code><a href="org/nats/Connection.html#DEFAULT_RECONNECT_TIME_WAIT">DEFAULT_RECONNECT_TIME_WAIT</a></code></td>
<td class="colLast"><code>2000</code></td>
</tr>
<tr class="altColor">
-<td class="colFirst"><a name="org.nats.Session.EMPTY">
+<td class="colFirst"><a name="org.nats.Connection.EMPTY">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;java.lang.String</code></td>
-<td><code><a href="org/nats/Session.html#EMPTY">EMPTY</a></code></td>
+<td><code><a href="org/nats/Connection.html#EMPTY">EMPTY</a></code></td>
<td class="colLast"><code>""</code></td>
</tr>
<tr class="rowColor">
-<td class="colFirst"><a name="org.nats.Session.INIT_BUFFER_SIZE">
+<td class="colFirst"><a name="org.nats.Connection.INIT_BUFFER_SIZE">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
-<td><code><a href="org/nats/Session.html#INIT_BUFFER_SIZE">INIT_BUFFER_SIZE</a></code></td>
-<td class="colLast"><code>2097152</code></td>
+<td><code><a href="org/nats/Connection.html#INIT_BUFFER_SIZE">INIT_BUFFER_SIZE</a></code></td>
+<td class="colLast"><code>1048576</code></td>
</tr>
<tr class="altColor">
-<td class="colFirst"><a name="org.nats.Session.MAX_BUFFER_SIZE">
+<td class="colFirst"><a name="org.nats.Connection.MAX_BUFFER_SIZE">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
-<td><code><a href="org/nats/Session.html#MAX_BUFFER_SIZE">MAX_BUFFER_SIZE</a></code></td>
-<td class="colLast"><code>10485760</code></td>
+<td><code><a href="org/nats/Connection.html#MAX_BUFFER_SIZE">MAX_BUFFER_SIZE</a></code></td>
+<td class="colLast"><code>16777216</code></td>
</tr>
<tr class="rowColor">
-<td class="colFirst"><a name="org.nats.Session.MAX_CONTROL_LINE_SIZE">
+<td class="colFirst"><a name="org.nats.Connection.MAX_PENDING_SIZE">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
-<td><code><a href="org/nats/Session.html#MAX_CONTROL_LINE_SIZE">MAX_CONTROL_LINE_SIZE</a></code></td>
-<td class="colLast"><code>512</code></td>
-</tr>
-<tr class="altColor">
-<td class="colFirst"><a name="org.nats.Session.MAX_PENDING_SIZE">
-<!-- -->
-</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
-<td><code><a href="org/nats/Session.html#MAX_PENDING_SIZE">MAX_PENDING_SIZE</a></code></td>
+<td><code><a href="org/nats/Connection.html#MAX_PENDING_SIZE">MAX_PENDING_SIZE</a></code></td>
<td class="colLast"><code>32768</code></td>
</tr>
-<tr class="rowColor">
-<td class="colFirst"><a name="org.nats.Session.REALLOCATION_SIZE">
-<!-- -->
-</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
-<td><code><a href="org/nats/Session.html#REALLOCATION_SIZE">REALLOCATION_SIZE</a></code></td>
-<td class="colLast"><code>2097152</code></td>
-</tr>
<tr class="altColor">
-<td class="colFirst"><a name="org.nats.Session.REALLOCATION_THRESHOLD">
+<td class="colFirst"><a name="org.nats.Connection.REALLOCATION_THRESHOLD">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;long</code></td>
-<td><code><a href="org/nats/Session.html#REALLOCATION_THRESHOLD">REALLOCATION_THRESHOLD</a></code></td>
+<td><code><a href="org/nats/Connection.html#REALLOCATION_THRESHOLD">REALLOCATION_THRESHOLD</a></code></td>
<td class="colLast"><code>5000L</code></td>
</tr>
<tr class="rowColor">
-<td class="colFirst"><a name="org.nats.Session.SPC">
+<td class="colFirst"><a name="org.nats.Connection.SPC">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;java.lang.String</code></td>
-<td><code><a href="org/nats/Session.html#SPC">SPC</a></code></td>
+<td><code><a href="org/nats/Connection.html#SPC">SPC</a></code></td>
<td class="colLast"><code>" "</code></td>
</tr>
<tr class="altColor">
-<td class="colFirst"><a name="org.nats.Session.version">
+<td class="colFirst"><a name="org.nats.Connection.version">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;java.lang.String</code></td>
-<td><code><a href="org/nats/Session.html#version">version</a></code></td>
-<td class="colLast"><code>"0.4"</code></td>
+<td><code><a href="org/nats/Connection.html#version">version</a></code></td>
+<td class="colLast"><code>"0.4.3"</code></td>
</tr>
</tbody>
</table>
View
4 doc/deprecated-list.html
@@ -2,9 +2,9 @@
<!-- NewPage -->
<html lang="en">
<head>
-<!-- Generated by javadoc (version 1.7.0_04) on Fri Aug 31 19:22:48 JST 2012 -->
+<!-- Generated by javadoc (version 1.7.0_04) on Wed Sep 26 15:00:40 JST 2012 -->
<title>Deprecated List</title>
-<meta name="date" content="2012-08-31">
+<meta name="date" content="2012-09-26">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
</head>
<body>
View
4 doc/help-doc.html
@@ -2,9 +2,9 @@
<!-- NewPage -->
<html lang="en">
<head>
-<!-- Generated by javadoc (version 1.7.0_04) on Fri Aug 31 19:22:48 JST 2012 -->
+<!-- Generated by javadoc (version 1.7.0_04) on Wed Sep 26 15:00:40 JST 2012 -->
<title>API Help</title>
-<meta name="date" content="2012-08-31">
+<meta name="date" content="2012-09-26">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
</head>
<body>
View
8 doc/index-files/index-1.html
@@ -2,9 +2,9 @@
<!-- NewPage -->
<html lang="en">
<head>
-<!-- Generated by javadoc (version 1.7.0_04) on Fri Aug 31 19:22:48 JST 2012 -->
+<!-- Generated by javadoc (version 1.7.0_04) on Wed Sep 26 15:00:40 JST 2012 -->
<title>A-Index</title>
-<meta name="date" content="2012-08-31">
+<meta name="date" content="2012-09-26">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
</head>
<body>
@@ -73,9 +73,9 @@ <h2 class="title">A</h2>
<dd>&nbsp;</dd>
<dt><span class="strong"><a href="../org/nats/examples/AutoUnsub.html#AutoUnsub()">AutoUnsub()</a></span> - Constructor for class org.nats.examples.<a href="../org/nats/examples/AutoUnsub.html" title="class in org.nats.examples">AutoUnsub</a></dt>
<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#AWAITING_CONTROL">AWAITING_CONTROL</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#AWAITING_CONTROL">AWAITING_CONTROL</a></span> - Static variable in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#AWAITING_MSG_PAYLOAD">AWAITING_MSG_PAYLOAD</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#AWAITING_MSG_PAYLOAD">AWAITING_MSG_PAYLOAD</a></span> - Static variable in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>&nbsp;</dd>
</dl>
<a href="index-1.html">A</a>&nbsp;<a href="index-2.html">C</a>&nbsp;<a href="index-3.html">D</a>&nbsp;<a href="index-4.html">E</a>&nbsp;<a href="index-5.html">F</a>&nbsp;<a href="index-6.html">G</a>&nbsp;<a href="index-7.html">I</a>&nbsp;<a href="index-8.html">M</a>&nbsp;<a href="index-9.html">O</a>&nbsp;<a href="index-10.html">P</a>&nbsp;<a href="index-11.html">Q</a>&nbsp;<a href="index-12.html">R</a>&nbsp;<a href="index-13.html">S</a>&nbsp;<a href="index-14.html">T</a>&nbsp;<a href="index-15.html">U</a>&nbsp;<a href="index-16.html">V</a>&nbsp;</div>
View
26 doc/index-files/index-10.html
@@ -2,9 +2,9 @@
<!-- NewPage -->
<html lang="en">
<head>
-<!-- Generated by javadoc (version 1.7.0_04) on Fri Aug 31 19:22:48 JST 2012 -->
+<!-- Generated by javadoc (version 1.7.0_04) on Wed Sep 26 15:00:40 JST 2012 -->
<title>P-Index</title>
-<meta name="date" content="2012-08-31">
+<meta name="date" content="2012-09-26">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
</head>
<body>
@@ -67,33 +67,33 @@
</a>
<h2 class="title">P</h2>
<dl>
-<dt><span class="strong"><a href="../org/nats/Session.html#PING">PING</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#PING">PING</a></span> - Static variable in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#PING_REQUEST">PING_REQUEST</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#PING_REQUEST">PING_REQUEST</a></span> - Static variable in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#PING_REQUEST_LEN">PING_REQUEST_LEN</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#PING_REQUEST_LEN">PING_REQUEST_LEN</a></span> - Static variable in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#PONG">PONG</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#PONG">PONG</a></span> - Static variable in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#PONG_RESPONSE">PONG_RESPONSE</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#PONG_RESPONSE">PONG_RESPONSE</a></span> - Static variable in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#PONG_RESPONSE_LEN">PONG_RESPONSE_LEN</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#PONG_RESPONSE_LEN">PONG_RESPONSE_LEN</a></span> - Static variable in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
+<dd>&nbsp;</dd>
+<dt><span class="strong"><a href="../org/nats/Connection.html#PUB">PUB</a></span> - Static variable in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>&nbsp;</dd>
<dt><a href="../org/nats/examples/Pub.html" title="class in org.nats.examples"><span class="strong">Pub</span></a> - Class in <a href="../org/nats/examples/package-summary.html">org.nats.examples</a></dt>
<dd>&nbsp;</dd>
<dt><span class="strong"><a href="../org/nats/examples/Pub.html#Pub()">Pub()</a></span> - Constructor for class org.nats.examples.<a href="../org/nats/examples/Pub.html" title="class in org.nats.examples">Pub</a></dt>
<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#PUB">PUB</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
-<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#publish(java.lang.String, java.lang.String)">publish(String, String)</a></span> - Method in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#publish(java.lang.String, java.lang.String)">publish(String, String)</a></span> - Method in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>
<div class="block">Publish a message to the given subject.</div>
</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#publish(java.lang.String, java.lang.String, org.nats.MsgHandler)">publish(String, String, MsgHandler)</a></span> - Method in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#publish(java.lang.String, java.lang.String, org.nats.MsgHandler)">publish(String, String, MsgHandler)</a></span> - Method in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>
<div class="block">Publish a message to the given subject.</div>
</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#publish(java.lang.String, java.lang.String, java.lang.String, org.nats.MsgHandler)">publish(String, String, String, MsgHandler)</a></span> - Method in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#publish(java.lang.String, java.lang.String, java.lang.String, org.nats.MsgHandler)">publish(String, String, String, MsgHandler)</a></span> - Method in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>&nbsp;</dd>
<dt><a href="../org/nats/benchmark/PubPerf.html" title="class in org.nats.benchmark"><span class="strong">PubPerf</span></a> - Class in <a href="../org/nats/benchmark/package-summary.html">org.nats.benchmark</a></dt>
<dd>&nbsp;</dd>
View
4 doc/index-files/index-11.html
@@ -2,9 +2,9 @@
<!-- NewPage -->
<html lang="en">
<head>
-<!-- Generated by javadoc (version 1.7.0_04) on Fri Aug 31 19:22:48 JST 2012 -->
+<!-- Generated by javadoc (version 1.7.0_04) on Wed Sep 26 15:00:40 JST 2012 -->
<title>Q-Index</title>
-<meta name="date" content="2012-08-31">
+<meta name="date" content="2012-09-26">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
</head>
<body>
View
20 doc/index-files/index-12.html
@@ -2,9 +2,9 @@
<!-- NewPage -->
<html lang="en">
<head>
-<!-- Generated by javadoc (version 1.7.0_04) on Fri Aug 31 19:22:48 JST 2012 -->
+<!-- Generated by javadoc (version 1.7.0_04) on Wed Sep 26 15:00:40 JST 2012 -->
<title>R-Index</title>
-<meta name="date" content="2012-08-31">
+<meta name="date" content="2012-09-26">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
</head>
<body>
@@ -67,22 +67,20 @@
</a>
<h2 class="title">R</h2>
<dl>
-<dt><span class="strong"><a href="../org/nats/Session.html#REALLOCATION_SIZE">REALLOCATION_SIZE</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#REALLOCATION_THRESHOLD">REALLOCATION_THRESHOLD</a></span> - Static variable in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#REALLOCATION_THRESHOLD">REALLOCATION_THRESHOLD</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
-<dd>&nbsp;</dd>
-<dt><a href="../org/nats/examples/Request.html" title="class in org.nats.examples"><span class="strong">Request</span></a> - Class in <a href="../org/nats/examples/package-summary.html">org.nats.examples</a></dt>
-<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/examples/Request.html#Request()">Request()</a></span> - Constructor for class org.nats.examples.<a href="../org/nats/examples/Request.html" title="class in org.nats.examples">Request</a></dt>
-<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#request(java.lang.String, org.nats.MsgHandler)">request(String, MsgHandler)</a></span> - Method in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#request(java.lang.String, org.nats.MsgHandler)">request(String, MsgHandler)</a></span> - Method in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>
<div class="block">Send a request and have the response delivered to the supplied handler.</div>
</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#request(java.lang.String, java.lang.String, java.util.Properties, org.nats.MsgHandler)">request(String, String, Properties, MsgHandler)</a></span> - Method in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#request(java.lang.String, java.lang.String, java.util.Properties, org.nats.MsgHandler)">request(String, String, Properties, MsgHandler)</a></span> - Method in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>
<div class="block">Send a request and have the response delivered to the supplied handler.</div>
</dd>
+<dt><a href="../org/nats/examples/Request.html" title="class in org.nats.examples"><span class="strong">Request</span></a> - Class in <a href="../org/nats/examples/package-summary.html">org.nats.examples</a></dt>
+<dd>&nbsp;</dd>
+<dt><span class="strong"><a href="../org/nats/examples/Request.html#Request()">Request()</a></span> - Constructor for class org.nats.examples.<a href="../org/nats/examples/Request.html" title="class in org.nats.examples">Request</a></dt>
+<dd>&nbsp;</dd>
</dl>
<a href="index-1.html">A</a>&nbsp;<a href="index-2.html">C</a>&nbsp;<a href="index-3.html">D</a>&nbsp;<a href="index-4.html">E</a>&nbsp;<a href="index-5.html">F</a>&nbsp;<a href="index-6.html">G</a>&nbsp;<a href="index-7.html">I</a>&nbsp;<a href="index-8.html">M</a>&nbsp;<a href="index-9.html">O</a>&nbsp;<a href="index-10.html">P</a>&nbsp;<a href="index-11.html">Q</a>&nbsp;<a href="index-12.html">R</a>&nbsp;<a href="index-13.html">S</a>&nbsp;<a href="index-14.html">T</a>&nbsp;<a href="index-15.html">U</a>&nbsp;<a href="index-16.html">V</a>&nbsp;</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
View
24 doc/index-files/index-13.html
@@ -2,9 +2,9 @@
<!-- NewPage -->
<html lang="en">
<head>
-<!-- Generated by javadoc (version 1.7.0_04) on Fri Aug 31 19:22:48 JST 2012 -->
+<!-- Generated by javadoc (version 1.7.0_04) on Wed Sep 26 15:00:40 JST 2012 -->
<title>S-Index</title>
-<meta name="date" content="2012-08-31">
+<meta name="date" content="2012-09-26">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
</head>
<body>
@@ -67,35 +67,31 @@
</a>
<h2 class="title">S</h2>
<dl>
-<dt><a href="../org/nats/Session.html" title="class in org.nats"><span class="strong">Session</span></a> - Class in <a href="../org/nats/package-summary.html">org.nats</a></dt>
-<dd>
-<div class="block">Session represents a bidirectional channel to NATS server.</div>
-</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#SPC">SPC</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#SPC">SPC</a></span> - Static variable in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#start()">start()</a></span> - Method in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#start()">start()</a></span> - Method in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>
<div class="block">Establish a connection to the server and start a background thread for processing incoming and outgoing messages</div>
</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#start(org.nats.MsgHandler)">start(MsgHandler)</a></span> - Method in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#start(org.nats.MsgHandler)">start(MsgHandler)</a></span> - Method in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>
<div class="block">Establish a connection to the server and start a background thread for processing incoming and outgoing messages</div>
</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#stop()">stop()</a></span> - Method in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#stop()">stop()</a></span> - Method in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>
<div class="block">Close the channel and stopping the background thread.</div>
</dd>
+<dt><span class="strong"><a href="../org/nats/Connection.html#SUB">SUB</a></span> - Static variable in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
+<dd>&nbsp;</dd>
<dt><a href="../org/nats/examples/Sub.html" title="class in org.nats.examples"><span class="strong">Sub</span></a> - Class in <a href="../org/nats/examples/package-summary.html">org.nats.examples</a></dt>
<dd>&nbsp;</dd>
<dt><span class="strong"><a href="../org/nats/examples/Sub.html#Sub()">Sub()</a></span> - Constructor for class org.nats.examples.<a href="../org/nats/examples/Sub.html" title="class in org.nats.examples">Sub</a></dt>
<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#SUB">SUB</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
-<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#subscribe(java.lang.String, org.nats.MsgHandler)">subscribe(String, MsgHandler)</a></span> - Method in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#subscribe(java.lang.String, org.nats.MsgHandler)">subscribe(String, MsgHandler)</a></span> - Method in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>
<div class="block">Subscribe to a subject with optional wildcards.</div>
</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#subscribe(java.lang.String, java.util.Properties, org.nats.MsgHandler)">subscribe(String, Properties, MsgHandler)</a></span> - Method in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#subscribe(java.lang.String, java.util.Properties, org.nats.MsgHandler)">subscribe(String, Properties, MsgHandler)</a></span> - Method in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>
<div class="block">Subscribe to a subject with optional wildcards.</div>
</dd>
View
6 doc/index-files/index-14.html
@@ -2,9 +2,9 @@
<!-- NewPage -->
<html lang="en">
<head>
-<!-- Generated by javadoc (version 1.7.0_04) on Fri Aug 31 19:22:48 JST 2012 -->
+<!-- Generated by javadoc (version 1.7.0_04) on Wed Sep 26 15:00:40 JST 2012 -->
<title>T-Index</title>
-<meta name="date" content="2012-08-31">
+<meta name="date" content="2012-09-26">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
</head>
<body>
@@ -67,7 +67,7 @@
</a>
<h2 class="title">T</h2>
<dl>
-<dt><span class="strong"><a href="../org/nats/Session.html#timeout(java.lang.Integer, long, java.util.Properties, org.nats.MsgHandler)">timeout(Integer, long, Properties, MsgHandler)</a></span> - Method in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#timeout(java.lang.Integer, long, java.util.Properties, org.nats.MsgHandler)">timeout(Integer, long, Properties, MsgHandler)</a></span> - Method in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>
<div class="block">Set a timeout on a subscription.</div>
</dd>
View
10 doc/index-files/index-15.html
@@ -2,9 +2,9 @@
<!-- NewPage -->
<html lang="en">
<head>
-<!-- Generated by javadoc (version 1.7.0_04) on Fri Aug 31 19:22:48 JST 2012 -->
+<!-- Generated by javadoc (version 1.7.0_04) on Wed Sep 26 15:00:40 JST 2012 -->
<title>U-Index</title>
-<meta name="date" content="2012-08-31">
+<meta name="date" content="2012-09-26">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
</head>
<body>
@@ -67,13 +67,13 @@
</a>
<h2 class="title">U</h2>
<dl>
-<dt><span class="strong"><a href="../org/nats/Session.html#UNSUB">UNSUB</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#UNSUB">UNSUB</a></span> - Static variable in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#unsubscribe(java.lang.Integer)">unsubscribe(Integer)</a></span> - Method in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#unsubscribe(java.lang.Integer)">unsubscribe(Integer)</a></span> - Method in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>
<div class="block">Cancel a subscription.</div>
</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#unsubscribe(java.lang.Integer, int)">unsubscribe(Integer, int)</a></span> - Method in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#unsubscribe(java.lang.Integer, int)">unsubscribe(Integer, int)</a></span> - Method in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>
<div class="block">Cancel a subscription.</div>
</dd>
View
8 doc/index-files/index-16.html
@@ -2,9 +2,9 @@
<!-- NewPage -->
<html lang="en">
<head>
-<!-- Generated by javadoc (version 1.7.0_04) on Fri Aug 31 19:22:48 JST 2012 -->
+<!-- Generated by javadoc (version 1.7.0_04) on Wed Sep 26 15:00:40 JST 2012 -->
<title>V-Index</title>
-<meta name="date" content="2012-08-31">
+<meta name="date" content="2012-09-26">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
</head>
<body>
@@ -67,9 +67,7 @@
</a>
<h2 class="title">V</h2>
<dl>
-<dt><span class="strong"><a href="../org/nats/MsgHandler.html#verifyArity()">verifyArity()</a></span> - Method in class org.nats.<a href="../org/nats/MsgHandler.html" title="class in org.nats">MsgHandler</a></dt>
-<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#version">version</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#version">version</a></span> - Static variable in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>&nbsp;</dd>
</dl>
<a href="index-1.html">A</a>&nbsp;<a href="index-2.html">C</a>&nbsp;<a href="index-3.html">D</a>&nbsp;<a href="index-4.html">E</a>&nbsp;<a href="index-5.html">F</a>&nbsp;<a href="index-6.html">G</a>&nbsp;<a href="index-7.html">I</a>&nbsp;<a href="index-8.html">M</a>&nbsp;<a href="index-9.html">O</a>&nbsp;<a href="index-10.html">P</a>&nbsp;<a href="index-11.html">Q</a>&nbsp;<a href="index-12.html">R</a>&nbsp;<a href="index-13.html">S</a>&nbsp;<a href="index-14.html">T</a>&nbsp;<a href="index-15.html">U</a>&nbsp;<a href="index-16.html">V</a>&nbsp;</div>
View
20 doc/index-files/index-2.html
@@ -2,9 +2,9 @@
<!-- NewPage -->
<html lang="en">
<head>
-<!-- Generated by javadoc (version 1.7.0_04) on Fri Aug 31 19:22:48 JST 2012 -->
+<!-- Generated by javadoc (version 1.7.0_04) on Wed Sep 26 15:00:40 JST 2012 -->
<title>C-Index</title>
-<meta name="date" content="2012-08-31">
+<meta name="date" content="2012-09-26">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
</head>
<body>
@@ -69,17 +69,21 @@ <h2 class="title">C</h2>
<dl>
<dt><span class="strong"><a href="../org/nats/MsgHandler.html#caller">caller</a></span> - Variable in class org.nats.<a href="../org/nats/MsgHandler.html" title="class in org.nats">MsgHandler</a></dt>
<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#CONNECT">CONNECT</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#CONNECT">CONNECT</a></span> - Static variable in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#connect(java.util.Properties)">connect(Properties)</a></span> - Static method in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#connect(java.util.Properties)">connect(Properties)</a></span> - Static method in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>
-<div class="block">Create and return a Session with various attributes.</div>
+<div class="block">Create and return a Connection with various attributes.</div>
</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#CR_LF">CR_LF</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><a href="../org/nats/Connection.html" title="class in org.nats"><span class="strong">Connection</span></a> - Class in <a href="../org/nats/package-summary.html">org.nats</a></dt>
+<dd>
+<div class="block">Connection represents a bidirectional channel to NATS server.</div>
+</dd>
+<dt><span class="strong"><a href="../org/nats/Connection.html#CR_LF">CR_LF</a></span> - Static variable in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#CR_LF_LEN">CR_LF_LEN</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#CR_LF_LEN">CR_LF_LEN</a></span> - Static variable in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#createInbox()">createInbox()</a></span> - Method in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#createInbox()">createInbox()</a></span> - Method in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>
<div class="block">Create a properly formatted inbox subject.</div>
</dd>
View
12 doc/index-files/index-3.html
@@ -2,9 +2,9 @@
<!-- NewPage -->
<html lang="en">
<head>
-<!-- Generated by javadoc (version 1.7.0_04) on Fri Aug 31 19:22:48 JST 2012 -->
+<!-- Generated by javadoc (version 1.7.0_04) on Wed Sep 26 15:00:40 JST 2012 -->
<title>D-Index</title>
-<meta name="date" content="2012-08-31">
+<meta name="date" content="2012-09-26">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
</head>
<body>
@@ -67,13 +67,13 @@
</a>
<h2 class="title">D</h2>
<dl>
-<dt><span class="strong"><a href="../org/nats/Session.html#DEFAULT_MAX_RECONNECT_ATTEMPTS">DEFAULT_MAX_RECONNECT_ATTEMPTS</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#DEFAULT_MAX_RECONNECT_ATTEMPTS">DEFAULT_MAX_RECONNECT_ATTEMPTS</a></span> - Static variable in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#DEFAULT_PORT">DEFAULT_PORT</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#DEFAULT_PORT">DEFAULT_PORT</a></span> - Static variable in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#DEFAULT_RECONNECT_TIME_WAIT">DEFAULT_RECONNECT_TIME_WAIT</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#DEFAULT_RECONNECT_TIME_WAIT">DEFAULT_RECONNECT_TIME_WAIT</a></span> - Static variable in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#DEFAULT_URI">DEFAULT_URI</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#DEFAULT_URI">DEFAULT_URI</a></span> - Static variable in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>&nbsp;</dd>
</dl>
<a href="index-1.html">A</a>&nbsp;<a href="index-2.html">C</a>&nbsp;<a href="index-3.html">D</a>&nbsp;<a href="index-4.html">E</a>&nbsp;<a href="index-5.html">F</a>&nbsp;<a href="index-6.html">G</a>&nbsp;<a href="index-7.html">I</a>&nbsp;<a href="index-8.html">M</a>&nbsp;<a href="index-9.html">O</a>&nbsp;<a href="index-10.html">P</a>&nbsp;<a href="index-11.html">Q</a>&nbsp;<a href="index-12.html">R</a>&nbsp;<a href="index-13.html">S</a>&nbsp;<a href="index-14.html">T</a>&nbsp;<a href="index-15.html">U</a>&nbsp;<a href="index-16.html">V</a>&nbsp;</div>
View
8 doc/index-files/index-4.html
@@ -2,9 +2,9 @@
<!-- NewPage -->
<html lang="en">
<head>
-<!-- Generated by javadoc (version 1.7.0_04) on Fri Aug 31 19:22:48 JST 2012 -->
+<!-- Generated by javadoc (version 1.7.0_04) on Wed Sep 26 15:00:40 JST 2012 -->
<title>E-Index</title>
-<meta name="date" content="2012-08-31">
+<meta name="date" content="2012-09-26">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
</head>
<body>
@@ -67,9 +67,9 @@
</a>
<h2 class="title">E</h2>
<dl>
-<dt><span class="strong"><a href="../org/nats/Session.html#EMPTY">EMPTY</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#EMPTY">EMPTY</a></span> - Static variable in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#ERR">ERR</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#ERR">ERR</a></span> - Static variable in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>&nbsp;</dd>
<dt><span class="strong"><a href="../org/nats/MsgHandler.html#execute()">execute()</a></span> - Method in class org.nats.<a href="../org/nats/MsgHandler.html" title="class in org.nats">MsgHandler</a></dt>
<dd>&nbsp;</dd>
View
8 doc/index-files/index-5.html
@@ -2,9 +2,9 @@
<!-- NewPage -->
<html lang="en">
<head>
-<!-- Generated by javadoc (version 1.7.0_04) on Fri Aug 31 19:22:48 JST 2012 -->
+<!-- Generated by javadoc (version 1.7.0_04) on Wed Sep 26 15:00:40 JST 2012 -->
<title>F-Index</title>
-<meta name="date" content="2012-08-31">
+<meta name="date" content="2012-09-26">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
</head>
<body>
@@ -67,11 +67,11 @@
</a>
<h2 class="title">F</h2>
<dl>
-<dt><span class="strong"><a href="../org/nats/Session.html#flush()">flush()</a></span> - Method in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#flush()">flush()</a></span> - Method in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>
<div class="block">Flush buffered messages with no event handler.</div>
</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#flush(org.nats.MsgHandler)">flush(MsgHandler)</a></span> - Method in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#flush(org.nats.MsgHandler)">flush(MsgHandler)</a></span> - Method in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>
<div class="block">Flush buffered messages with a specified event handler.</div>
</dd>
View
6 doc/index-files/index-6.html
@@ -2,9 +2,9 @@
<!-- NewPage -->
<html lang="en">
<head>
-<!-- Generated by javadoc (version 1.7.0_04) on Fri Aug 31 19:22:48 JST 2012 -->
+<!-- Generated by javadoc (version 1.7.0_04) on Wed Sep 26 15:00:40 JST 2012 -->
<title>G-Index</title>
-<meta name="date" content="2012-08-31">
+<meta name="date" content="2012-09-26">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
</head>
<body>
@@ -67,7 +67,7 @@
</a>
<h2 class="title">G</h2>
<dl>
-<dt><span class="strong"><a href="../org/nats/Session.html#getSubscriptionCount()">getSubscriptionCount()</a></span> - Method in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#getSubscriptionCount()">getSubscriptionCount()</a></span> - Method in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>
<div class="block">Return the active subscription count.</div>
</dd>
View
12 doc/index-files/index-7.html
@@ -2,9 +2,9 @@
<!-- NewPage -->
<html lang="en">
<head>
-<!-- Generated by javadoc (version 1.7.0_04) on Fri Aug 31 19:22:48 JST 2012 -->
+<!-- Generated by javadoc (version 1.7.0_04) on Wed Sep 26 15:00:40 JST 2012 -->
<title>I-Index</title>
-<meta name="date" content="2012-08-31">
+<meta name="date" content="2012-09-26">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
</head>
<body>
@@ -67,15 +67,15 @@
</a>
<h2 class="title">I</h2>
<dl>
-<dt><span class="strong"><a href="../org/nats/Session.html#INFO">INFO</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#INFO">INFO</a></span> - Static variable in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#INIT_BUFFER_SIZE">INIT_BUFFER_SIZE</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#INIT_BUFFER_SIZE">INIT_BUFFER_SIZE</a></span> - Static variable in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#inspect()">inspect()</a></span> - Method in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#inspect()">inspect()</a></span> - Method in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>
<div class="block">Return version String.</div>
</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#isConnected()">isConnected()</a></span> - Method in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#isConnected()">isConnected()</a></span> - Method in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>
<div class="block">Return status (true or false) of a connection to the server.</div>
</dd>
View
12 doc/index-files/index-8.html
@@ -2,9 +2,9 @@
<!-- NewPage -->
<html lang="en">
<head>
-<!-- Generated by javadoc (version 1.7.0_04) on Fri Aug 31 19:22:48 JST 2012 -->
+<!-- Generated by javadoc (version 1.7.0_04) on Wed Sep 26 15:00:40 JST 2012 -->
<title>M-Index</title>
-<meta name="date" content="2012-08-31">
+<meta name="date" content="2012-09-26">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
</head>
<body>
@@ -89,13 +89,11 @@ <h2 class="title">M</h2>
<dd>&nbsp;</dd>
<dt><span class="strong"><a href="../org/nats/examples/SubUnsub.html#main(java.lang.String[])">main(String[])</a></span> - Static method in class org.nats.examples.<a href="../org/nats/examples/SubUnsub.html" title="class in org.nats.examples">SubUnsub</a></dt>
<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#MAX_BUFFER_SIZE">MAX_BUFFER_SIZE</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#MAX_BUFFER_SIZE">MAX_BUFFER_SIZE</a></span> - Static variable in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#MAX_CONTROL_LINE_SIZE">MAX_CONTROL_LINE_SIZE</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#MAX_PENDING_SIZE">MAX_PENDING_SIZE</a></span> - Static variable in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#MAX_PENDING_SIZE">MAX_PENDING_SIZE</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
-<dd>&nbsp;</dd>
-<dt><span class="strong"><a href="../org/nats/Session.html#MSG">MSG</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#MSG">MSG</a></span> - Static variable in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>&nbsp;</dd>
<dt><a href="../org/nats/MsgHandler.html" title="class in org.nats"><span class="strong">MsgHandler</span></a> - Class in <a href="../org/nats/package-summary.html">org.nats</a></dt>
<dd>
View
6 doc/index-files/index-9.html
@@ -2,9 +2,9 @@
<!-- NewPage -->
<html lang="en">
<head>
-<!-- Generated by javadoc (version 1.7.0_04) on Fri Aug 31 19:22:48 JST 2012 -->
+<!-- Generated by javadoc (version 1.7.0_04) on Wed Sep 26 15:00:40 JST 2012 -->
<title>O-Index</title>
-<meta name="date" content="2012-08-31">
+<meta name="date" content="2012-09-26">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
</head>
<body>
@@ -67,7 +67,7 @@
</a>
<h2 class="title">O</h2>
<dl>
-<dt><span class="strong"><a href="../org/nats/Session.html#OK">OK</a></span> - Static variable in class org.nats.<a href="../org/nats/Session.html" title="class in org.nats">Session</a></dt>
+<dt><span class="strong"><a href="../org/nats/Connection.html#OK">OK</a></span> - Static variable in class org.nats.<a href="../org/nats/Connection.html" title="class in org.nats">Connection</a></dt>
<dd>&nbsp;</dd>
<dt><a href="../org/nats/benchmark/package-summary.html">org.nats.benchmark</a> - package org.nats.benchmark</dt>
<dd>&nbsp;</dd>
View
2  doc/index.html
@@ -2,7 +2,7 @@
<!-- NewPage -->
<html lang="en">
<head>
-<!-- Generated by javadoc on Fri Aug 31 19:22:48 JST 2012 -->
+<!-- Generated by javadoc on Wed Sep 26 15:00:40 JST 2012 -->
<title>Generated Documentation (Untitled)</title>
<script type="text/javascript">
targetPage = "" + window.location.search;
View
216 doc/org/nats/Session.html → doc/org/nats/Connection.html
@@ -2,15 +2,15 @@
<!-- NewPage -->
<html lang="en">
<head>
-<!-- Generated by javadoc (version 1.7.0_04) on Fri Aug 31 19:22:47 JST 2012 -->
-<title>Session</title>
-<meta name="date" content="2012-08-31">
+<!-- Generated by javadoc (version 1.7.0_04) on Wed Sep 26 15:00:39 JST 2012 -->
+<title>Connection</title>
+<meta name="date" content="2012-09-26">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="Session";
+ parent.document.title="Connection";
}
//-->
</script>
@@ -27,7 +27,7 @@
<li><a href="../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
-<li><a href="class-use/Session.html">Use</a></li>
+<li><a href="class-use/Connection.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-files/index-1.html">Index</a></li>
@@ -36,12 +36,12 @@
</div>
<div class="subNav">
<ul class="navList">
-<li><a href="../../org/nats/MsgHandler.html" title="class in org.nats"><span class="strong">Prev Class</span></a></li>
-<li>Next Class</li>
+<li>Prev Class</li>
+<li><a href="../../org/nats/MsgHandler.html" title="class in org.nats"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
-<li><a href="../../index.html?org/nats/Session.html" target="_top">Frames</a></li>
-<li><a href="Session.html" target="_top">No Frames</a></li>
+<li><a href="../../index.html?org/nats/Connection.html" target="_top">Frames</a></li>
+<li><a href="Connection.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../allclasses-noframe.html">All Classes</a></li>
@@ -80,14 +80,14 @@
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.nats</div>
-<h2 title="Class Session" class="title">Class Session</h2>
+<h2 title="Class Connection" class="title">Class Connection</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
-<li>org.nats.Session</li>
+<li>org.nats.Connection</li>
</ul>
</li>
</ul>
@@ -96,11 +96,11 @@ <h2 title="Class Session" class="title">Class Session</h2>
<li class="blockList">
<hr>
<br>
-<pre>public final class <span class="strong">Session</span>
+<pre>public final class <span class="strong">Connection</span>
extends java.lang.Object</pre>
-<div class="block">Session represents a bidirectional channel to NATS server. Event handler may be attached to each operation
- which is invoked when the operation is processed by the server. A client JVM may create multiple Session objects
- by calling <a href="../../org/nats/Session.html#connect(java.util.Properties)"><code>connect(java.util.Properties popts)</code></a> multiple times.</div>
+<div class="block">Connection represents a bidirectional channel to NATS server. Message handler may be attached to each operation
+ which is invoked when the operation is processed by the server. A client JVM may create multiple Connection objects
+ by calling <a href="../../org/nats/Connection.html#connect(java.util.Properties)"><code>connect(java.util.Properties popts)</code></a> multiple times.</div>
<dl><dt><span class="strong">Author:</span></dt>
<dd>Teppei Yagihashi</dd></dl>
</li>
@@ -123,127 +123,119 @@ <h2 title="Class Session" class="title">Class Session</h2>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#AWAITING_CONTROL">AWAITING_CONTROL</a></strong></code>&nbsp;</td>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#AWAITING_CONTROL">AWAITING_CONTROL</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#AWAITING_MSG_PAYLOAD">AWAITING_MSG_PAYLOAD</a></strong></code>&nbsp;</td>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#AWAITING_MSG_PAYLOAD">AWAITING_MSG_PAYLOAD</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static byte[]</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#CONNECT">CONNECT</a></strong></code>&nbsp;</td>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#CONNECT">CONNECT</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#CR_LF">CR_LF</a></strong></code>&nbsp;</td>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#CR_LF">CR_LF</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#CR_LF_LEN">CR_LF_LEN</a></strong></code>&nbsp;</td>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#CR_LF_LEN">CR_LF_LEN</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#DEFAULT_MAX_RECONNECT_ATTEMPTS">DEFAULT_MAX_RECONNECT_ATTEMPTS</a></strong></code>&nbsp;</td>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#DEFAULT_MAX_RECONNECT_ATTEMPTS">DEFAULT_MAX_RECONNECT_ATTEMPTS</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#DEFAULT_PORT">DEFAULT_PORT</a></strong></code>&nbsp;</td>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#DEFAULT_PORT">DEFAULT_PORT</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#DEFAULT_RECONNECT_TIME_WAIT">DEFAULT_RECONNECT_TIME_WAIT</a></strong></code>&nbsp;</td>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#DEFAULT_RECONNECT_TIME_WAIT">DEFAULT_RECONNECT_TIME_WAIT</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#DEFAULT_URI">DEFAULT_URI</a></strong></code>&nbsp;</td>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#DEFAULT_URI">DEFAULT_URI</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#EMPTY">EMPTY</a></strong></code>&nbsp;</td>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#EMPTY">EMPTY</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static byte[]</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#ERR">ERR</a></strong></code>&nbsp;</td>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#ERR">ERR</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static byte[]</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#INFO">INFO</a></strong></code>&nbsp;</td>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#INFO">INFO</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#INIT_BUFFER_SIZE">INIT_BUFFER_SIZE</a></strong></code>&nbsp;</td>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#INIT_BUFFER_SIZE">INIT_BUFFER_SIZE</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#MAX_BUFFER_SIZE">MAX_BUFFER_SIZE</a></strong></code>&nbsp;</td>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#MAX_BUFFER_SIZE">MAX_BUFFER_SIZE</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#MAX_CONTROL_LINE_SIZE">MAX_CONTROL_LINE_SIZE</a></strong></code>&nbsp;</td>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#MAX_PENDING_SIZE">MAX_PENDING_SIZE</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
-<td class="colFirst"><code>static int</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#MAX_PENDING_SIZE">MAX_PENDING_SIZE</a></strong></code>&nbsp;</td>
+<td class="colFirst"><code>static byte[]</code></td>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#MSG">MSG</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static byte[]</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#MSG">MSG</a></strong></code>&nbsp;</td>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#OK">OK</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static byte[]</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#OK">OK</a></strong></code>&nbsp;</td>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#PING">PING</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static byte[]</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#PING">PING</a></strong></code>&nbsp;</td>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#PING_REQUEST">PING_REQUEST</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
-<td class="colFirst"><code>static byte[]</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#PING_REQUEST">PING_REQUEST</a></strong></code>&nbsp;</td>
-</tr>
-<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#PING_REQUEST_LEN">PING_REQUEST_LEN</a></strong></code>&nbsp;</td>
-</tr>
-<tr class="rowColor">
-<td class="colFirst"><code>static byte[]</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#PONG">PONG</a></strong></code>&nbsp;</td>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#PING_REQUEST_LEN">PING_REQUEST_LEN</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static byte[]</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#PONG_RESPONSE">PONG_RESPONSE</a></strong></code>&nbsp;</td>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#PONG">PONG</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
-<td class="colFirst"><code>static int</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#PONG_RESPONSE_LEN">PONG_RESPONSE_LEN</a></strong></code>&nbsp;</td>
+<td class="colFirst"><code>static byte[]</code></td>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#PONG_RESPONSE">PONG_RESPONSE</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
-<td class="colFirst"><code>static byte[]</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#PUB">PUB</a></strong></code>&nbsp;</td>
+<td class="colFirst"><code>static int</code></td>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#PONG_RESPONSE_LEN">PONG_RESPONSE_LEN</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
-<td class="colFirst"><code>static int</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#REALLOCATION_SIZE">REALLOCATION_SIZE</a></strong></code>&nbsp;</td>
+<td class="colFirst"><code>static byte[]</code></td>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#PUB">PUB</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static long</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#REALLOCATION_THRESHOLD">REALLOCATION_THRESHOLD</a></strong></code>&nbsp;</td>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#REALLOCATION_THRESHOLD">REALLOCATION_THRESHOLD</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#SPC">SPC</a></strong></code>&nbsp;</td>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#SPC">SPC</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static byte[]</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#SUB">SUB</a></strong></code>&nbsp;</td>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#SUB">SUB</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static byte[]</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#UNSUB">UNSUB</a></strong></code>&nbsp;</td>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#UNSUB">UNSUB</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#version">version</a></strong></code>&nbsp;</td>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#version">version</a></strong></code>&nbsp;</td>
</tr>
</table>
</li>
@@ -261,57 +253,57 @@ <h2 title="Class Session" class="title">Class Session</h2>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
-<td class="colFirst"><code>static <a href="../../org/nats/Session.html" title="class in org.nats">Session</a></code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#connect(java.util.Properties)">connect</a></strong>(java.util.Properties&nbsp;popts)</code>
-<div class="block">Create and return a Session with various attributes.</div>
+<td class="colFirst"><code>static <a href="../../org/nats/Connection.html" title="class in org.nats">Connection</a></code></td>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#connect(java.util.Properties)">connect</a></strong>(java.util.Properties&nbsp;popts)</code>
+<div class="block">Create and return a Connection with various attributes.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#createInbox()">createInbox</a></strong>()</code>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#createInbox()">createInbox</a></strong>()</code>
<div class="block">Create a properly formatted inbox subject.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#flush()">flush</a></strong>()</code>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#flush()">flush</a></strong>()</code>
<div class="block">Flush buffered messages with no event handler.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#flush(org.nats.MsgHandler)">flush</a></strong>(<a href="../../org/nats/MsgHandler.html" title="class in org.nats">MsgHandler</a>&nbsp;handler)</code>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#flush(org.nats.MsgHandler)">flush</a></strong>(<a href="../../org/nats/MsgHandler.html" title="class in org.nats">MsgHandler</a>&nbsp;handler)</code>
<div class="block">Flush buffered messages with a specified event handler.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#getSubscriptionCount()">getSubscriptionCount</a></strong>()</code>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#getSubscriptionCount()">getSubscriptionCount</a></strong>()</code>
<div class="block">Return the active subscription count.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#inspect()">inspect</a></strong>()</code>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#inspect()">inspect</a></strong>()</code>
<div class="block">Return version String.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#isConnected()">isConnected</a></strong>()</code>
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#isConnected()">isConnected</a></strong>()</code>
<div class="block">Return status (true or false) of a connection to the server.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#publish(java.lang.String, java.lang.String)">publish</a></strong>(java.lang.String&nbsp;subject,
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#publish(java.lang.String, java.lang.String)">publish</a></strong>(java.lang.String&nbsp;subject,
java.lang.String&nbsp;msg)</code>
<div class="block">Publish a message to the given subject.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#publish(java.lang.String, java.lang.String, org.nats.MsgHandler)">publish</a></strong>(java.lang.String&nbsp;subject,
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#publish(java.lang.String, java.lang.String, org.nats.MsgHandler)">publish</a></strong>(java.lang.String&nbsp;subject,
java.lang.String&nbsp;msg,
<a href="../../org/nats/MsgHandler.html" title="class in org.nats">MsgHandler</a>&nbsp;handler)</code>
<div class="block">Publish a message to the given subject.</div>
@@ -319,21 +311,21 @@ <h2 title="Class Session" class="title">Class Session</h2>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#publish(java.lang.String, java.lang.String, java.lang.String, org.nats.MsgHandler)">publish</a></strong>(java.lang.String&nbsp;subject,
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#publish(java.lang.String, java.lang.String, java.lang.String, org.nats.MsgHandler)">publish</a></strong>(java.lang.String&nbsp;subject,
java.lang.String&nbsp;opt_reply,
java.lang.String&nbsp;msg,
<a href="../../org/nats/MsgHandler.html" title="class in org.nats">MsgHandler</a>&nbsp;handler)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.Integer</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#request(java.lang.String, org.nats.MsgHandler)">request</a></strong>(java.lang.String&nbsp;subject,
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#request(java.lang.String, org.nats.MsgHandler)">request</a></strong>(java.lang.String&nbsp;subject,
<a href="../../org/nats/MsgHandler.html" title="class in org.nats">MsgHandler</a>&nbsp;handler)</code>
<div class="block">Send a request and have the response delivered to the supplied handler.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.Integer</code></td>
-<td class="colLast"><code><strong><a href="../../org/nats/Session.html#request(java.lang.String, java.lang.String, java.util.Properties, org.nats.MsgHandler)">request</a></strong>(java.lang.String&nbsp;subject,
+<td class="colLast"><code><strong><a href="../../org/nats/Connection.html#request(java.lang.String, java.lang.String, java.util.Properties, org.nats.MsgHandler)">request</a></strong>(java.lang.String&nbsp;subject,
java.lang.String&nbsp;data,
java.util.Properties&nbsp;popts,
<a href="../../org/nats/MsgHandler.html" title="class in org.nats">MsgHandler</a>&nbsp;handler)</code>
@@ -342,32 +334,32 @@ <h2 title="Class Session" class="title">Class Session</h2>
</tr> </