The Subscriber internal implementation based on Akka actors.
The Subscriber internal implementation based on Akka actors.
com.outworkers.phantom.streams.StreamedCassandraTable.subscriber()
This is the typeclass that should be implemented for a given instance of T.
This is the typeclass that should be implemented for a given instance of T. Every implementation of this typeclass should be provided implicitly in the scope in order to be used by the stream.
implicit object MyRequestBuilderForT extends RequestBuilder[CT, T] { override def request(ct: CT, t: T): ExecutableStatement = ct.insert().value(_.name, t.name) }
the concrete CassandraTable implementation type
the type of streamed elements
the concrete type inheriting from CassandraTable
the type of the streamed element
Adapt an Enumerator to a Publisher.
Adapt an Enumerator to a Publisher. Each Subscriber will be adapted to an Iteratee and applied to the Enumerator. Input of type Input.El will result in calls to onNext.
Either onError or onComplete will always be invoked as the last call to the subscriber, the former happening if the enumerator fails with an error, the latter happening when the first of either Input.EOF is fed, or the enumerator completes.
If emptyElement is None then Input of type Input.Empty will be ignored. If it is set to Some(x) then it will call onNext with the value x.
Returns the product of the arguments, throwing an exception if the result overflows a scala.Long.
Returns the product of the arguments, throwing an exception if the result overflows a scala.Long.
the first value
the second value
the result
1.8
ArithmeticException
if the result overflows a long
Just a wrapper module for enhancing phantom CassandraTable with reactive streams features.
In order to be used, please be sured to import the implicits into the scope.
https://github.com/websudos/phantom
http://www.reactive-streams.org/