Skip to content

Commit ae180bb

Browse files
committed
Document Streaming interface
1 parent a6ef86f commit ae180bb

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,14 +311,22 @@ public class com.amazon.aws.lambda.Environment {
311311
}
312312
```
313313

314-
Lambda
315-
------
316-
Instead of functions, a handler's *target()* method may also return instances implementing the *Lambda* interface:
314+
Interfaces
315+
----------
316+
Instead of functions, a handler's *target()* method may also return instances implementing the *Lambda* or *Streaming* interfaces:
317317

318318
```php
319319
public interface com.amazon.aws.lambda.Lambda {
320320
public function process(var $event, com.amazon.aws.lambda.Context $context): var
321321
}
322+
323+
public interface com.amazon.aws.lambda.Streaming {
324+
public abstract function handle(
325+
var $event,
326+
com.amazon.aws.lambda.Stream $stream,
327+
com.amazon.aws.lambda.Context $context
328+
): void
329+
}
322330
```
323331

324332
See also

0 commit comments

Comments
 (0)