org.apache.openejb.client
Class AbstractConnectionStrategy
java.lang.Object
org.apache.openejb.client.AbstractConnectionStrategy
- All Implemented Interfaces:
- ConnectionStrategy
- Direct Known Subclasses:
- RandomConnectionStrategy, RoundRobinConnectionStrategy, StickyConnectionStrategy
public abstract class AbstractConnectionStrategy
- extends Object
- implements ConnectionStrategy
- Version:
- $Rev$ $Date$
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractConnectionStrategy
public AbstractConnectionStrategy()
connect
public Connection connect(ClusterMetaData cluster,
ServerMetaData server)
throws IOException
- Specified by:
connect in interface ConnectionStrategy
- Throws:
IOException
createFailureEvent
protected abstract FailoverSelection createFailureEvent(Set<URI> remaining,
Set<URI> failed,
URI uri)
createIterable
protected abstract Iterable<URI> createIterable(ClusterMetaData cluster)
connect
protected Connection connect(ClusterMetaData cluster,
URI uri)
throws IOException
- Throws:
IOException
Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.