clojure.tools.nrepl
Class Connection

java.lang.Object
  extended by clojure.tools.nrepl.Connection
All Implemented Interfaces:
Closeable

public class Connection
extends Object
implements Closeable

Author:
Chas Emerick

Nested Class Summary
static class Connection.Response
           
 
Field Summary
 clojure.lang.IFn client
           
 Closeable transport
           
 String url
           
 
Constructor Summary
Connection(String url)
           
Connection(String url, long readTimeout)
           
 
Method Summary
 void close()
           
static clojure.lang.Var find(String ns, String name)
           
 String newSession(String cloneSessionId)
           
 Connection.Response send(String... kvs)
           
 Connection.Response sendSession(String session, String... kvs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

transport

public final Closeable transport

client

public final clojure.lang.IFn client

url

public final String url
Constructor Detail

Connection

public Connection(String url)
           throws Exception
Throws:
Exception

Connection

public Connection(String url,
                  long readTimeout)
           throws Exception
Throws:
Exception
Method Detail

find

public static clojure.lang.Var find(String ns,
                                    String name)

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException

send

public Connection.Response send(String... kvs)

sendSession

public Connection.Response sendSession(String session,
                                       String... kvs)

newSession

public String newSession(String cloneSessionId)


Copyright © 2015. All Rights Reserved.