Changeset 9 for references/src/main/java/geniusweb
- Timestamp:
- 11/28/19 14:40:48 (5 years ago)
- Location:
- references/src/main/java/geniusweb/connection
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
references/src/main/java/geniusweb/connection/Connectable.java
r1 r9 2 2 3 3 /** 4 * a socket for a general two-way connection 4 * A Connectable is an object that can connect on request with a provided 5 * {@link ConnectionEnd} and then respond to incoming and outgong signals. 5 6 * 6 * @param <INTYPE> the type of incoming messages7 * @param <INTYPE> the type of incoming messages 7 8 * @param <OUTTYPE> the type of outgoing messages 8 9 */ … … 13 14 * @param connection the new connection 14 15 */ 15 void connect(Connection <INTYPE, OUTTYPE> connection);16 void connect(ConnectionEnd<INTYPE, OUTTYPE> connection); 16 17 17 18 /** -
references/src/main/java/geniusweb/connection/ConnectionFactory.java
r1 r9 9 9 * factory that can turn a {@link Reference} into a connection to that 10 10 * reference. 11 * 11 12 * 12 13 * @param <INTYPE> the type of incoming messages. Incoming messages are … … 30 31 * the server. This suggest to retry later. 31 32 */ 32 Connection <INTYPE, OUTTYPE> connect(Reference reference)33 ConnectionEnd<INTYPE, OUTTYPE> connect(Reference reference) 33 34 throws IOException, NoResourcesNowException; 34 35 -
references/src/main/java/geniusweb/connection/DefaultConnection.java
r1 r9 14 14 */ 15 15 public abstract class DefaultConnection<INTYPE, OUTTYPE> extends 16 DefaultListenable<INTYPE> implements Connection <INTYPE, OUTTYPE> {16 DefaultListenable<INTYPE> implements ConnectionEnd<INTYPE, OUTTYPE> { 17 17 }
Note:
See TracChangeset
for help on using the changeset viewer.