org.jboss.remoting
Interface ClientSource<I,O>

Type Parameters:
I - the request type
O - the reply type
All Superinterfaces:
Closeable, HandleableCloseable<ClientSource<I,O>>

public interface ClientSource<I,O>
extends HandleableCloseable<ClientSource<I,O>>

A source for new Remoting contexts.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.remoting.HandleableCloseable
HandleableCloseable.Key
 
Method Summary
 void close()
          Close the context source.
 Client<I,O> createClient()
          Create a new communications context.
 
Methods inherited from interface org.jboss.remoting.HandleableCloseable
addCloseHandler
 

Method Detail

close

void close()
           throws IOException
Close the context source. New contexts may no longer be created after this method is called. Subsequent calls to this method have no additional effect.

Specified by:
close in interface Closeable
Specified by:
close in interface HandleableCloseable<ClientSource<I,O>>
Throws:
IOException - if the close failed

createClient

Client<I,O> createClient()
                         throws IOException
Create a new communications context.

Returns:
the new context
Throws:
IOException


Copyright © 2008 JBoss, a division of Red Hat, Inc.