File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
spring-messaging/src/main/java/org/springframework/messaging/tcp Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2013 the original author or authors.
2
+ * Copyright 2002-2015 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
16
16
17
17
package org .springframework .messaging .tcp ;
18
18
19
+ import java .io .Closeable ;
20
+
19
21
import org .springframework .messaging .Message ;
20
22
import org .springframework .util .concurrent .ListenableFuture ;
21
23
22
24
/**
23
25
* A contract for sending messages and managing a TCP connection.
24
26
*
25
- * @param <P> the type of payload for outbound {@link Message}s
26
- *
27
27
* @author Rossen Stoyanchev
28
28
* @since 4.0
29
+ * @param <P> the type of payload for outbound {@link Message}s
29
30
*/
30
- public interface TcpConnection <P > {
31
+ public interface TcpConnection <P > extends Closeable {
31
32
32
33
/**
33
34
* Send the given message.
@@ -54,6 +55,7 @@ public interface TcpConnection<P> {
54
55
/**
55
56
* Close the connection.
56
57
*/
58
+ @ Override
57
59
void close ();
58
60
59
61
}
You can’t perform that action at this time.
0 commit comments