org.jboss.remoting
Interface ClientSource<I,O>
- Type Parameters:
I
- the request typeO
- 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.
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.