Renaming gRPC-java "newtransport" package to just "transport".

-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=78596663
diff --git a/core/src/main/java/com/google/net/stubby/transport/StreamListener.java b/core/src/main/java/com/google/net/stubby/transport/StreamListener.java
new file mode 100644
index 0000000..7ab497e
--- /dev/null
+++ b/core/src/main/java/com/google/net/stubby/transport/StreamListener.java
@@ -0,0 +1,35 @@
+package com.google.net.stubby.transport;
+
+import com.google.common.util.concurrent.ListenableFuture;
+
+import java.io.InputStream;
+
+import javax.annotation.Nullable;
+
+/**
+ * An observer of {@link Stream} events. It is guaranteed to only have one concurrent callback at a
+ * time.
+ */
+public interface StreamListener {
+  /**
+   * Called upon receiving a message from the remote end-point. The {@link InputStream} is
+   * non-blocking and contains the entire message.
+   *
+   * <p>The method optionally returns a future that can be observed by flow control to determine
+   * when the message has been processed by the application. If {@code null} is returned, processing
+   * of this message is assumed to be complete upon returning from this method.
+   *
+   * <p>The {@code message} {@link InputStream} will be closed when the returned future completes.
+   * If no future is returned, the stream will be closed immediately after returning from this
+   * method.
+   *
+   * <p>This method should return quickly, as the same thread may be used to process other streams.
+   *
+   * @param message the bytes of the message.
+   * @param length the length of the message {@link InputStream}.
+   * @return a processing completion future, or {@code null} to indicate that processing of the
+   *         message is immediately complete.
+   */
+  @Nullable
+  ListenableFuture<Void> messageRead(InputStream message, int length);
+}