public abstract class NotUsed
extends java.lang.Object
Unit
and Java’s Void
, which both have different issues when
used from the other language. An example use-case is the materialized value of an Akka Stream for cases
where no result shall be returned from materialization.Constructor and Description |
---|
NotUsed() |
Modifier and Type | Method and Description |
---|---|
static NotUsed |
getInstance()
Java API: the singleton instance
|
public static NotUsed getInstance()