| Eric Anderson | 6529132 | 2015-05-15 11:57:05 -0700 | [diff] [blame] | 1 | [](https://travis-ci.org/grpc/grpc-java) |
| 2 | |
| Kun Zhang | d32bb47 | 2015-05-06 16:15:53 -0700 | [diff] [blame] | 3 | gRPC-Java - An RPC library and framework |
| 4 | ======================================== |
| 5 | |
| Eric Anderson | 6529132 | 2015-05-15 11:57:05 -0700 | [diff] [blame] | 6 | gRPC-Java works with JDK 6. TLS usage typically requires using Java 8, or Play |
| nmittler | 2483009 | 2015-05-28 13:12:56 -0700 | [diff] [blame] | 7 | Services Dynamic Security Provider on Android. Please see the [Security |
| 8 | Readme](SECURITY.md). |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 9 | |
| Eric Anderson | 1eb16d9 | 2015-05-26 14:22:32 -0700 | [diff] [blame] | 10 | Download |
| 11 | -------- |
| 12 | |
| 13 | Download [the JAR][]. Or for Maven, add to your `pom.xml`: |
| 14 | ```xml |
| 15 | <dependency> |
| 16 | <groupId>io.grpc</groupId> |
| 17 | <artifactId>grpc-all</artifactId> |
| nmittler | d94fedc | 2015-06-12 07:32:50 -0700 | [diff] [blame] | 18 | <version>0.7.1</version> |
| Eric Anderson | 1eb16d9 | 2015-05-26 14:22:32 -0700 | [diff] [blame] | 19 | </dependency> |
| 20 | ``` |
| 21 | |
| 22 | Or for Gradle, add to your dependencies: |
| 23 | ```gradle |
| nmittler | d94fedc | 2015-06-12 07:32:50 -0700 | [diff] [blame] | 24 | compile 'io.grpc:grpc-all:0.7.1' |
| Eric Anderson | 1eb16d9 | 2015-05-26 14:22:32 -0700 | [diff] [blame] | 25 | ``` |
| 26 | |
| nmittler | d94fedc | 2015-06-12 07:32:50 -0700 | [diff] [blame] | 27 | [the JAR]: https://search.maven.org/remote_content?g=io.grpc&a=grpc-all&v=0.7.1 |
| Eric Anderson | 1eb16d9 | 2015-05-26 14:22:32 -0700 | [diff] [blame] | 28 | |
| 29 | Development snapshots are available in [Sonatypes's snapshot |
| 30 | repository](https://oss.sonatype.org/content/repositories/snapshots/). |
| 31 | |
| 32 | For protobuf-based codegen integrated with the Maven build system, you can use |
| 33 | [maven-protoc-plugin][]: |
| 34 | ```xml |
| Kun Zhang | 7a71627 | 2015-06-30 18:13:27 -0700 | [diff] [blame] | 35 | <pluginRepositories> |
| 36 | <pluginRepository> |
| 37 | <releases> |
| 38 | <updatePolicy>never</updatePolicy> |
| 39 | </releases> |
| 40 | <snapshots> |
| 41 | <enabled>false</enabled> |
| 42 | </snapshots> |
| 43 | <id>central</id> |
| 44 | <name>Central Repository</name> |
| 45 | <url>https://repo.maven.apache.org/maven2</url> |
| 46 | </pluginRepository> |
| 47 | <pluginRepository> |
| 48 | <id>protoc-plugin</id> |
| 49 | <url>https://dl.bintray.com/sergei-ivanov/maven/</url> |
| 50 | </pluginRepository> |
| 51 | </pluginRepositories> |
| Eric Anderson | 1eb16d9 | 2015-05-26 14:22:32 -0700 | [diff] [blame] | 52 | <build> |
| 53 | <extensions> |
| 54 | <extension> |
| 55 | <groupId>kr.motd.maven</groupId> |
| 56 | <artifactId>os-maven-plugin</artifactId> |
| 57 | <version>1.2.3.Final</version> |
| 58 | </extension> |
| 59 | </extensions> |
| 60 | <plugins> |
| 61 | <plugin> |
| 62 | <groupId>com.google.protobuf.tools</groupId> |
| 63 | <artifactId>maven-protoc-plugin</artifactId> |
| 64 | <version>0.4.2</version> |
| 65 | <configuration> |
| Kun Zhang | 8bd8ed8 | 2015-07-22 09:19:52 -0700 | [diff] [blame] | 66 | <!-- |
| 67 | The version of protoc must match protobuf-java. If you don't depend on |
| 68 | protobuf-java directly, you will be transitively depending on the |
| 69 | protobuf-java version that grpc depends on. |
| 70 | --> |
| 71 | <protocArtifact>com.google.protobuf:protoc:3.0.0-alpha-2:exe:${os.detected.classifier}</protocArtifact> |
| Eric Anderson | 1eb16d9 | 2015-05-26 14:22:32 -0700 | [diff] [blame] | 72 | <pluginId>grpc-java</pluginId> |
| nmittler | d94fedc | 2015-06-12 07:32:50 -0700 | [diff] [blame] | 73 | <pluginArtifact>io.grpc:protoc-gen-grpc-java:0.7.1:exe:${os.detected.classifier}</pluginArtifact> |
| Eric Anderson | 1eb16d9 | 2015-05-26 14:22:32 -0700 | [diff] [blame] | 74 | </configuration> |
| 75 | <executions> |
| 76 | <execution> |
| 77 | <goals> |
| 78 | <goal>compile</goal> |
| 79 | <goal>compile-custom</goal> |
| 80 | </goals> |
| 81 | </execution> |
| 82 | </executions> |
| 83 | </plugin> |
| 84 | </plugins> |
| 85 | </build> |
| 86 | ``` |
| 87 | |
| 88 | [maven-protoc-plugin]: http://sergei-ivanov.github.io/maven-protoc-plugin/ |
| 89 | |
| 90 | For protobuf-based codegen integrated with the Gradle build system, you can use |
| 91 | [protobuf-gradle-plugin][]: |
| 92 | ```gradle |
| Kun Zhang | 8bd8ed8 | 2015-07-22 09:19:52 -0700 | [diff] [blame] | 93 | apply plugin: 'java' |
| Eric Anderson | 1eb16d9 | 2015-05-26 14:22:32 -0700 | [diff] [blame] | 94 | apply plugin: 'com.google.protobuf' |
| 95 | |
| 96 | buildscript { |
| 97 | repositories { |
| 98 | mavenCentral() |
| 99 | } |
| 100 | dependencies { |
| Kun Zhang | 137b2ef | 2015-08-03 11:10:22 -0700 | [diff] [blame] | 101 | classpath 'com.google.protobuf:protobuf-gradle-plugin:0.6.1' |
| Eric Anderson | 1eb16d9 | 2015-05-26 14:22:32 -0700 | [diff] [blame] | 102 | } |
| 103 | } |
| 104 | |
| Kun Zhang | 8bd8ed8 | 2015-07-22 09:19:52 -0700 | [diff] [blame] | 105 | protobuf { |
| 106 | protoc { |
| 107 | // The version of protoc must match protobuf-java. If you don't depend on |
| 108 | // protobuf-java directly, you will be transitively depending on the |
| 109 | // protobuf-java version that grpc depends on. |
| 110 | artifact = "com.google.protobuf:protoc:3.0.0-alpha-2" |
| 111 | } |
| 112 | plugins { |
| 113 | grpc { |
| 114 | artifact = 'io.grpc:protoc-gen-grpc-java:0.7.1' |
| 115 | } |
| 116 | } |
| 117 | generateProtoTasks { |
| 118 | all()*.plugins { |
| 119 | grpc {} |
| Eric Anderson | 1eb16d9 | 2015-05-26 14:22:32 -0700 | [diff] [blame] | 120 | } |
| 121 | } |
| 122 | } |
| Eric Anderson | 1eb16d9 | 2015-05-26 14:22:32 -0700 | [diff] [blame] | 123 | ``` |
| 124 | |
| 125 | [protobuf-gradle-plugin]: https://github.com/google/protobuf-gradle-plugin |
| 126 | |
| Eric Anderson | fb28ad2 | 2015-01-29 15:00:58 -0800 | [diff] [blame] | 127 | How to Build |
| 128 | ------------ |
| Eric Anderson | 1eb16d9 | 2015-05-26 14:22:32 -0700 | [diff] [blame] | 129 | This section is only necessary if you are making changes to gRPC-Java. |
| Eric Anderson | fb28ad2 | 2015-01-29 15:00:58 -0800 | [diff] [blame] | 130 | |
| Eric Anderson | 6529132 | 2015-05-15 11:57:05 -0700 | [diff] [blame] | 131 | Building requires JDK 8, as our tests use TLS. |
| 132 | |
| Eric Anderson | 66c55ee | 2015-05-07 15:07:13 -0700 | [diff] [blame] | 133 | grpc-java has a C++ code generation plugin for protoc. Since many Java |
| 134 | developers don't have C compilers installed and don't need to modify the |
| 135 | codegen, the build can skip it. To skip, create the file |
| 136 | `<project-root>/gradle.properties` and add `skipCodegen=true`. |
| 137 | |
| 138 | Then, to build, run: |
| 139 | ``` |
| 140 | $ ./gradlew build |
| 141 | ``` |
| 142 | |
| 143 | To install the artifacts to your Maven local repository for use in your own |
| 144 | project, run: |
| 145 | ``` |
| 146 | $ ./gradlew install |
| 147 | ``` |
| 148 | |
| 149 | How to Build Code Generation Plugin |
| 150 | ----------------------------------- |
| 151 | This section is only necessary if you are making changes to the code |
| 152 | generation. Most users only need to use `skipCodegen=true` as discussed above. |
| 153 | |
| Kun Zhang | fd0aed2 | 2015-04-30 17:29:17 -0700 | [diff] [blame] | 154 | ### Build Protobuf |
| Kun Zhang | af9fb6d | 2015-06-30 16:08:46 -0700 | [diff] [blame] | 155 | The codegen plugin is C++ code and requires protobuf 3.0.0-alpha-3.1. |
| Kun Zhang | 111f6dd | 2015-05-05 16:11:27 -0700 | [diff] [blame] | 156 | |
| Kun Zhang | fd0aed2 | 2015-04-30 17:29:17 -0700 | [diff] [blame] | 157 | For Linux, Mac and MinGW: |
| Eric Anderson | fb28ad2 | 2015-01-29 15:00:58 -0800 | [diff] [blame] | 158 | ``` |
| 159 | $ git clone https://github.com/google/protobuf.git |
| 160 | $ cd protobuf |
| Kun Zhang | af9fb6d | 2015-06-30 16:08:46 -0700 | [diff] [blame] | 161 | $ git checkout v3.0.0-alpha-3.1 |
| Eric Anderson | fb28ad2 | 2015-01-29 15:00:58 -0800 | [diff] [blame] | 162 | $ ./autogen.sh |
| 163 | $ ./configure |
| 164 | $ make |
| 165 | $ make check |
| 166 | $ sudo make install |
| Eric Anderson | fb28ad2 | 2015-01-29 15:00:58 -0800 | [diff] [blame] | 167 | ``` |
| 168 | |
| 169 | If you are comfortable with C++ compilation and autotools, you can specify a |
| Kun Zhang | fd0aed2 | 2015-04-30 17:29:17 -0700 | [diff] [blame] | 170 | ``--prefix`` for Protobuf and use ``-I`` in ``CXXFLAGS``, ``-L`` in |
| 171 | ``LDFLAGS``, ``LD_LIBRARY_PATH``, and ``PATH`` to reference it. The |
| 172 | environment variables will be used when building grpc-java. |
| Eric Anderson | fb28ad2 | 2015-01-29 15:00:58 -0800 | [diff] [blame] | 173 | |
| Kun Zhang | fd0aed2 | 2015-04-30 17:29:17 -0700 | [diff] [blame] | 174 | Protobuf installs to ``/usr/local`` by default. |
| 175 | |
| 176 | For Visual C++, please refer to the [Protobuf README](https://github.com/google/protobuf/blob/master/vsprojects/readme.txt) |
| 177 | for how to compile Protobuf. |
| 178 | |
| 179 | #### Linux and MinGW |
| 180 | If ``/usr/local/lib`` is not in your library search path, you can add it by running: |
| Louis Ryan | 65d64cd | 2015-02-18 14:51:42 -0800 | [diff] [blame] | 181 | ``` |
| 182 | $ sudo sh -c 'echo /usr/local/lib >> /etc/ld.so.conf' |
| 183 | $ sudo ldconfig |
| 184 | ``` |
| 185 | |
| Kun Zhang | fd0aed2 | 2015-04-30 17:29:17 -0700 | [diff] [blame] | 186 | #### Mac |
| 187 | Some versions of Mac OS X (e.g., 10.10) doesn't have ``/usr/local`` in the |
| Kun Zhang | 111f6dd | 2015-05-05 16:11:27 -0700 | [diff] [blame] | 188 | default search paths for header files and libraries. It will fail the build of |
| 189 | the codegen. To work around this, you will need to set environment variables: |
| Kun Zhang | fd0aed2 | 2015-04-30 17:29:17 -0700 | [diff] [blame] | 190 | ``` |
| 191 | $ export CXXFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" |
| 192 | ``` |
| 193 | |
| Kun Zhang | 221c534 | 2015-04-29 18:16:15 -0700 | [diff] [blame] | 194 | ### Notes for Visual C++ |
| 195 | |
| Eric Anderson | 456216b | 2015-03-02 16:58:27 -0800 | [diff] [blame] | 196 | When building on Windows and VC++, you need to specify project properties for |
| 197 | Gradle to find protobuf: |
| 198 | ``` |
| Kun Zhang | 221c534 | 2015-04-29 18:16:15 -0700 | [diff] [blame] | 199 | .\gradlew install ^ |
| Kun Zhang | af9fb6d | 2015-06-30 16:08:46 -0700 | [diff] [blame] | 200 | -PvcProtobufInclude=C:\path\to\protobuf-3.0.0-alpha-3.1\src ^ |
| 201 | -PvcProtobufLibs=C:\path\to\protobuf-3.0.0-alpha-3.1\vsprojects\Release |
| Eric Anderson | 456216b | 2015-03-02 16:58:27 -0800 | [diff] [blame] | 202 | ``` |
| 203 | |
| 204 | Since specifying those properties every build is bothersome, you can instead |
| Kun Zhang | 2f74971 | 2015-05-06 13:10:28 -0700 | [diff] [blame] | 205 | create ``<project-root>\gradle.properties`` with contents like: |
| Eric Anderson | 456216b | 2015-03-02 16:58:27 -0800 | [diff] [blame] | 206 | ``` |
| Kun Zhang | af9fb6d | 2015-06-30 16:08:46 -0700 | [diff] [blame] | 207 | vcProtobufInclude=C:\\path\\to\\protobuf-3.0.0-alpha-3.1\\src |
| 208 | vcProtobufLibs=C:\\path\\to\\protobuf-3.0.0-alpha-3.1\\vsprojects\\Release |
| Eric Anderson | 456216b | 2015-03-02 16:58:27 -0800 | [diff] [blame] | 209 | ``` |
| 210 | |
| Kun Zhang | 221c534 | 2015-04-29 18:16:15 -0700 | [diff] [blame] | 211 | The build script will build the codegen for the same architecture as the Java |
| 212 | runtime installed on your system. If you are using 64-bit JVM, the codegen will |
| 213 | be compiled for 64-bit, that means you must have compiled Protobuf in 64-bit. |
| 214 | |
| 215 | ### Notes for MinGW on Windows |
| 216 | If you have both MinGW and VC++ installed on Windows, VC++ will be used by |
| Kun Zhang | 2f74971 | 2015-05-06 13:10:28 -0700 | [diff] [blame] | 217 | default. To override this default and use MinGW, add ``-PvcDisable=true`` |
| 218 | to your Gradle command line or add ``vcDisable=true`` to your |
| 219 | ``<project-root>\gradle.properties``. |
| Kun Zhang | 221c534 | 2015-04-29 18:16:15 -0700 | [diff] [blame] | 220 | |
| mekka | 9990794 | 2015-08-07 23:28:06 -0700 | [diff] [blame] | 221 | ### Notes for Unsupported Operating Systems |
| Kun Zhang | 9805e27 | 2015-05-12 17:03:19 -0700 | [diff] [blame] | 222 | The build script pulls pre-compiled ``protoc`` from Maven Central by default. |
| 223 | We have built ``protoc`` binaries for popular systems, but they may not work |
| 224 | for your system. If ``protoc`` cannot be downloaded or would not run, you can |
| 225 | use the one that has been built by your own, by adding this property to |
| 226 | ``<project-root>/gradle.properties``: |
| 227 | ``` |
| 228 | protoc=/path/to/protoc |
| 229 | ``` |
| 230 | |
| Eric Anderson | fb28ad2 | 2015-01-29 15:00:58 -0800 | [diff] [blame] | 231 | Navigating Around the Source |
| 232 | ---------------------------- |
| 233 | |
| mekka | 9990794 | 2015-08-07 23:28:06 -0700 | [diff] [blame] | 234 | Here's a quick readers' guide to the code to help folks get started. At a high |
| Kun Zhang | fc85a40 | 2015-08-05 16:48:15 -0700 | [diff] [blame] | 235 | level there are three distinct layers to the library: __Stub__, __Channel__ & |
| 236 | __Transport__. |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 237 | |
| Eric Anderson | fb28ad2 | 2015-01-29 15:00:58 -0800 | [diff] [blame] | 238 | ### Stub |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 239 | |
| Kun Zhang | fc85a40 | 2015-08-05 16:48:15 -0700 | [diff] [blame] | 240 | The Stub layer is what is exposed to most developers and provides type-safe |
| 241 | bindings to whatever datamodel/IDL/interface you are adapting. gRPC comes with |
| 242 | a [plugin](https://github.com/google/grpc-java/blob/master/compiler) to the |
| 243 | protocol-buffers compiler that generates Stub interfaces out of `.proto` files, |
| 244 | but bindings to other datamodel/IDL should be trivial to add and are welcome. |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 245 | |
| 246 | #### Key Interfaces |
| 247 | |
| nmittler | f831458 | 2015-01-27 10:25:39 -0800 | [diff] [blame] | 248 | [Stream Observer](https://github.com/google/grpc-java/blob/master/stub/src/main/java/io/grpc/stub/StreamObserver.java) |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 249 | |
| Eric Anderson | fb28ad2 | 2015-01-29 15:00:58 -0800 | [diff] [blame] | 250 | ### Channel |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 251 | |
| Kun Zhang | fc85a40 | 2015-08-05 16:48:15 -0700 | [diff] [blame] | 252 | The Channel layer is an abstraction over Transport handling that is suitable for |
| 253 | interception/decoration and exposes more behavior to the application than the |
| 254 | Stub layer. It is intended to be easy for application frameworks to use this |
| 255 | layer to address cross-cutting concerns such as logging, monitoring, auth etc. |
| 256 | Flow-control is also exposed at this layer to allow more sophisticated |
| 257 | applications to interact with it directly. |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 258 | |
| 259 | #### Common |
| 260 | |
| nmittler | f831458 | 2015-01-27 10:25:39 -0800 | [diff] [blame] | 261 | * [Metadata - headers & trailers](https://github.com/google/grpc-java/blob/master/core/src/main/java/io/grpc/Metadata.java) |
| 262 | * [Status - error code namespace & handling](https://github.com/google/grpc-java/blob/master/core/src/main/java/io/grpc/Status.java) |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 263 | |
| 264 | #### Client |
| nmittler | f831458 | 2015-01-27 10:25:39 -0800 | [diff] [blame] | 265 | * [Channel - client side binding](https://github.com/google/grpc-java/blob/master/core/src/main/java/io/grpc/Channel.java) |
| Kun Zhang | 2ee4d02 | 2015-06-04 16:39:25 -0700 | [diff] [blame] | 266 | * [Client Call](https://github.com/google/grpc-java/blob/master/core/src/main/java/io/grpc/ClientCall.java) |
| nmittler | f831458 | 2015-01-27 10:25:39 -0800 | [diff] [blame] | 267 | * [Client Interceptor](https://github.com/google/grpc-java/blob/master/core/src/main/java/io/grpc/ClientInterceptor.java) |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 268 | |
| 269 | #### Server |
| nmittler | f831458 | 2015-01-27 10:25:39 -0800 | [diff] [blame] | 270 | * [Server call handler - analog to Channel on server](https://github.com/google/grpc-java/blob/master/core/src/main/java/io/grpc/ServerCallHandler.java) |
| 271 | * [Server Call](https://github.com/google/grpc-java/blob/master/core/src/main/java/io/grpc/ServerCall.java) |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 272 | |
| 273 | |
| Eric Anderson | fb28ad2 | 2015-01-29 15:00:58 -0800 | [diff] [blame] | 274 | ### Transport |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 275 | |
| mekka | 9990794 | 2015-08-07 23:28:06 -0700 | [diff] [blame] | 276 | The Transport layer does the heavy lifting of putting and taking bytes off the |
| Kun Zhang | fc85a40 | 2015-08-05 16:48:15 -0700 | [diff] [blame] | 277 | wire. The interfaces to it are abstract just enough to allow plugging in of |
| 278 | different implementations. Transports are modeled as `Stream` factories. The |
| 279 | variation in interface between a server Stream and a client Stream exists to |
| 280 | codify their differing semantics for cancellation and error reporting. |
| 281 | |
| 282 | Note the transport layer API is considered internal to gRPC and has weaker API |
| 283 | guarantees than the core API under package `io.grpc`. |
| 284 | |
| mekka | 9990794 | 2015-08-07 23:28:06 -0700 | [diff] [blame] | 285 | gRPC comes with three Transport implementations: |
| Kun Zhang | fc85a40 | 2015-08-05 16:48:15 -0700 | [diff] [blame] | 286 | |
| 287 | 1. The [Netty-based](https://github.com/google/grpc-java/blob/master/netty) |
| 288 | transport is the main transport implementation based on |
| 289 | [Netty](http://netty.io). It is for both the client and the server. |
| 290 | 2. The [OkHttp-based](https://github.com/google/grpc-java/blob/master/okhttp) |
| 291 | transport is a lightweight transport based on |
| 292 | [OkHttp](http://square.github.io/okhttp/). It is mainly for use on Android |
| mekka | 9990794 | 2015-08-07 23:28:06 -0700 | [diff] [blame] | 293 | and is for client only. |
| Kun Zhang | fc85a40 | 2015-08-05 16:48:15 -0700 | [diff] [blame] | 294 | 3. The |
| mekka | 9990794 | 2015-08-07 23:28:06 -0700 | [diff] [blame] | 295 | [inProcess](https://github.com/google/grpc-java/blob/master/core/src/main/java/io/grpc/transport/inprocess) |
| Kun Zhang | fc85a40 | 2015-08-05 16:48:15 -0700 | [diff] [blame] | 296 | transport is for when a server is in the same process as the client. It is |
| 297 | useful for testing. |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 298 | |
| 299 | #### Common |
| 300 | |
| nmittler | f831458 | 2015-01-27 10:25:39 -0800 | [diff] [blame] | 301 | * [Stream](https://github.com/google/grpc-java/blob/master/core/src/main/java/io/grpc/transport/Stream.java) |
| 302 | * [Stream Listener](https://github.com/google/grpc-java/blob/master/core/src/main/java/io/grpc/transport/StreamListener.java) |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 303 | |
| 304 | #### Client |
| 305 | |
| nmittler | f831458 | 2015-01-27 10:25:39 -0800 | [diff] [blame] | 306 | * [Client Stream](https://github.com/google/grpc-java/blob/master/core/src/main/java/io/grpc/transport/ClientStream.java) |
| 307 | * [Client Stream Listener](https://github.com/google/grpc-java/blob/master/core/src/main/java/io/grpc/transport/ClientStreamListener.java) |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 308 | |
| 309 | #### Server |
| 310 | |
| nmittler | f831458 | 2015-01-27 10:25:39 -0800 | [diff] [blame] | 311 | * [Server Stream](https://github.com/google/grpc-java/blob/master/core/src/main/java/io/grpc/transport/ServerStream.java) |
| 312 | * [Server Stream Listener](https://github.com/google/grpc-java/blob/master/core/src/main/java/io/grpc/transport/ServerStreamListener.java) |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 313 | |
| 314 | |
| Eric Anderson | fb28ad2 | 2015-01-29 15:00:58 -0800 | [diff] [blame] | 315 | ### Examples |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 316 | |
| Kun Zhang | fc85a40 | 2015-08-05 16:48:15 -0700 | [diff] [blame] | 317 | Tests showing how these layers are composed to execute calls using protobuf |
| 318 | messages can be found here |
| 319 | https://github.com/google/grpc-java/tree/master/interop-testing/src/main/java/io/grpc/testing/integration |