You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2017/05/12 08:04:33 UTC
[09/19] httpcomponents-core git commit: Format tweak.
Format tweak.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1794116 13f79535-47bb-0310-9956-ffa450edef68
Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/51128f64
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/51128f64
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/51128f64
Branch: refs/heads/4.4.x
Commit: 51128f64aa5c2a119f2ed491c95dcec1c5f674a7
Parents: cbc80fc
Author: Gary D. Gregory <gg...@apache.org>
Authored: Fri May 5 23:35:18 2017 +0000
Committer: Oleg Kalnichevski <ol...@apache.org>
Committed: Fri May 12 09:49:28 2017 +0200
----------------------------------------------------------------------
.../src/main/java/org/apache/http/nio/reactor/ssl/SSLBuffer.java | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/51128f64/httpcore-nio/src/main/java/org/apache/http/nio/reactor/ssl/SSLBuffer.java
----------------------------------------------------------------------
diff --git a/httpcore-nio/src/main/java/org/apache/http/nio/reactor/ssl/SSLBuffer.java b/httpcore-nio/src/main/java/org/apache/http/nio/reactor/ssl/SSLBuffer.java
index 6ce8653..fd75694 100644
--- a/httpcore-nio/src/main/java/org/apache/http/nio/reactor/ssl/SSLBuffer.java
+++ b/httpcore-nio/src/main/java/org/apache/http/nio/reactor/ssl/SSLBuffer.java
@@ -32,6 +32,7 @@ import java.nio.ByteBuffer;
* Managed internal SSL buffer.
*/
public interface SSLBuffer {
+
/**
* Allocates the resources required for this buffer, or returns the resources already allocated for this buffer.
* Unless {@link #release() } is called, multiple invokations to this method must return the same
@@ -39,15 +40,18 @@ public interface SSLBuffer {
* @return buffer
*/
ByteBuffer acquire();
+
/**
* Releases the resources for this buffer. If the buffer has already been released, this method does nothing.
*/
void release();
+
/**
* Tests to see if this buffer has been acquired.
* @return {@code true} if the buffer is acquired, otherwise {@code false}
*/
boolean isAcquired();
+
/**
* Tests to make sure that the buffer has been acquired and the underlying buffer has a position larger than
* {@code 0}. Essentially the same as {@code isAquired() && acquire().position > 0}.