Package org.jcsp.lang
Interface ConnectionFactory
- All Known Implementing Classes:
StandardConnectionFactory
public interface ConnectionFactory
Defines an interface for a factory than can create connections.
-
Method Summary
Modifier and TypeMethodDescription<T> Any2AnyConnection
<T> Constructs and returns an implementation ofAny2AnyConnection
.<T> Any2OneConnection
<T> Constructs and returns an implementation ofAny2OneConnection
.<T> One2AnyConnection
<T> Constructs and returns an implementation ofOne2AnyConnection
.<T> One2OneConnection
<T> Constructs and returns an implementation ofOne2OneConnection
.
-
Method Details
-
createOne2One
Constructs and returns an implementation ofOne2OneConnection
.- Returns:
- the constructed
One2OneConnection
object.
-
createAny2One
Constructs and returns an implementation ofAny2OneConnection
.- Returns:
- the constructed
Any2OneConnection
object.
-
createOne2Any
Constructs and returns an implementation ofOne2AnyConnection
.- Returns:
- the constructed
One2AnyConnection
object.
-
createAny2Any
Constructs and returns an implementation ofAny2AnyConnection
.- Returns:
- the constructed
Any2AnyConnection
object.
-