Packageraix.reactive.subjects
Classpublic class ConnectableObservable
InheritanceConnectableObservable Inheritance AbsObservable Inheritance Object
Implements IConnectableObservable

Concrete implementation of IConnectableObservable



Public Methods
 MethodDefined By
  
ConnectableObservable
 Inherited
aggregate(accumulator:Function, initialValue:Object = null, useInitialValue:Boolean = false):IObservable
AbsObservable
 Inherited
all(predicate:Function):IObservable
Determines if all values in the source sequence satisfy a condition
AbsObservable
 Inherited
Creates a pattern by combining the current source with right.
AbsObservable
 Inherited
any(predicate:Function = null):IObservable
Determines if the source sequence contains a value that satisfies a condition
AbsObservable
 Inherited
Hides the source sequence so it cannot be cast back to it’s concrete implementation
AbsObservable
 Inherited
average(valueSelector:Function = null):IObservable
Returns the average value of all the elements in the source sequence
AbsObservable
 Inherited
bufferWithCount(count:uint, skip:uint = 0):IObservable
Emits the values from a source sequence in groups of a specific size
AbsObservable
 Inherited
bufferWithTime(timeMs:uint, timeShiftMs:uint = 0, scheduler:IScheduler = null):IObservable
Emits the values from a source sequence in groups of a specific size
AbsObservable
 Inherited
bufferWithTimeOrCount(timeMs:uint, count:uint, scheduler:IScheduler = null):IObservable
Buffers values into an array, with one array for either a maximum period of time or a maximum number of values, whichever occurs first
AbsObservable
 Inherited
cast(valueClass:Class):IObservable
Forces values from a source sequence to be of a specific class
AbsObservable
 Inherited
Runs a specific sequence when an error occurs
AbsObservable
 Inherited
catchErrorDefer(errorClass:Class, deferFunc:Function):IObservable
Runs a specific sequence, determined at runtime, when an error occurs
AbsObservable
 Inherited
chain(functions:Array):IObservable
Chains together sequences, starting with the current sequence, using selector functions that return a sequence for values of the previous.
AbsObservable
 Inherited
combineLatest(right:IObservable, selector:Function):IObservable
Merges two sequences through a mapping function, using the latest value from either source
AbsObservable
 Inherited
Concatonates multiple sequences by running each sequence as the previous one finishes
AbsObservable
 Inherited
concatMany(selector:Function):IObservable
Evaluates a new sequence for each value using a selector function and waits for the returned sequence to complete before resolving the next sequence
AbsObservable
  
Makes this observable 'hot', so that values will be emitted whether there is a subscriber connected or not.
ConnectableObservable
 Inherited
contains(value:Object, comparer:Function = null):IObservable
Determines if the source sequence contains a specific value
AbsObservable
 Inherited
Returns the number of elements in the source sequence
AbsObservable
 Inherited
delay(delayMs:uint, scheduler:IScheduler = null):IObservable
Delays all values in a sequences by a specified time
AbsObservable
 Inherited
delayUntil(dt:Date, scheduler:IScheduler = null):IObservable
AbsObservable
 Inherited
Converts materialized values back into messages
AbsObservable
 Inherited
distinctUntilChanged(comparer:Function = null):IObservable
Filters out consecutive duplicates from a source sequence
AbsObservable
 Inherited
expand(selector:Function):IObservable
Recursively expands the values in the sequence using a selector function
AbsObservable
 Inherited
filter(predicate:Function):IObservable
Filters out values from a source sequence
AbsObservable
 Inherited
finallyAction(action:Function):IObservable
Executes a function when the sequence completes, errors or is unsubscribed from
AbsObservable
 Inherited
Emits the first value in the sequence, or an error if the sequence completes with no values
AbsObservable
 Inherited
Emits the first value in the sequence, or a default value if the sequence completes with no values
AbsObservable
 Inherited
forkJoin(right:IObservable, selector:Function):IObservable
Combines the current sequence with another, emitting the last values of both after both have completed
AbsObservable
 Inherited
groupBy(keySelector:Function, elementSelector:Function = null, keyComparer:Function = null):IObservable
Groups values by a key
AbsObservable
 Inherited
groupByUntil(keySelector:Function, durationSelector:Function, elementSelector:Function = null, keyComparer:Function = null):IObservable
Groups values by a key and also provides a lifetime for a grouping
AbsObservable
 Inherited
groupJoin(right:IObservable, leftWindowSelector:Function, rightWindowSelector:Function, joinSelector:Function):IObservable
Combines values from two streams based on the "lifetime" of each value, represented by an IObservable selected for each value.
AbsObservable
 Inherited
Excludes values (calls to IObserver.onNext), emitting only onCompleted and onError
AbsObservable
 Inherited
join(right:IObservable, leftWindowSelector:Function, rightWindowSelector:Function, joinSelector:Function):IObservable
Combines values from two streams based on the "lifetime" of each value, represented by an IObservable selected for each value.
AbsObservable
 Inherited
Emits the last value in the sequence, or an error if the sequence completes with no values
AbsObservable
 Inherited
Emits the last value in the sequence, or the default value if the sequence completes with no values
AbsObservable
 Inherited
let(func:Function):IObservable
Pipes a composed sequence to be mapped through a function so it can be used multiple times
AbsObservable
 Inherited
log(message:String):IObservable
AbsObservable
 Inherited
map(selector:Function):IObservable
Maps the values from a source sequence through a function to change their value
AbsObservable
 Inherited
mapMany(selector:Function):IObservable
Starts a new sequence, returned by selector, for every value in the source sequence and merges their values
AbsObservable
 Inherited
Converts all messages (next, complete, error) into values
AbsObservable
 Inherited
Emits the values from multiple sources in the order that they arrive
AbsObservable
 Inherited
mergeMany(selector:Function, concurrent:int = 0):IObservable
Evaluates a new sequence for each value using a selector function and merges the results of the sequence returned by the returned sequence, optionally constraining the number of concurrent sequencing.
AbsObservable
 Inherited
Creates a connectable sequence that can be shared by multiple observers, using a specific subject implementation.
AbsObservable
 Inherited
multicastDefer(subjectSelector:Function, selector:Function):IObservable
Creates a connectable sequence that can be shared by multiple observers, using a specific subject implementation (determined at subscribe-time.
AbsObservable
 Inherited
multiWindow(windowOpenings:IObservable, windowClosingSelector:Function):IObservable
Emits values into child "window" observable sequences, which are opened and closed by the caller.
AbsObservable
 Inherited
Defers messages to subscribers through a scheduler
AbsObservable
 Inherited
ofClass(valueClass:Class):IObservable
Filters out values from a source sequence that are not of a specific type
AbsObservable
 Inherited
Subscribes down a list of sequence as each one errors or complete
AbsObservable
 Inherited
peek(nextAction:Function, completeAction:Function = null, errorAction:Function = null):IObservable
Allows custom code to be run when messages arrive without affecting the observer
AbsObservable
 Inherited
Allows custom code to be run when messages arrive without affecting the observer
AbsObservable
 Inherited
Creates a shared sequence that emits the last value of the source sequence
AbsObservable
 Inherited
pruneDefer(selector:Function, scheduler:IScheduler = null):IObservable
Creates a shared sequence that emits the last value of the source sequence, the shared sequence will be passed to the selector function when the sequence is subscribed to.
AbsObservable
 Inherited
Creates a connectable sequence that can be shared by multiple observers
AbsObservable
 Inherited
publishDefer(selector:Function):IObservable
Creates a shared sequence that can be used by multiple subscribers, the shared sequence will be passed to the selector function when the sequence is subscribed to.
AbsObservable
 Inherited
reduce(accumulator:Function, initialValue:Object = null, useInitialValue:Boolean = false):IObservable
Runs calculation functions over every value in the source sequence and emits the final result
AbsObservable
  
Makes this observable 'hot' when an observer subscribes, and will cancel the source subscription when the last observer unsubscribes
ConnectableObservable
 Inherited
Removes time interval information added with timeInterval
AbsObservable
 Inherited
Removes timestamp information added with timestamp
AbsObservable
 Inherited
repeat(repeatCount:uint = 0):IObservable
Repeats the source sequence a specific number of times
AbsObservable
 Inherited
replay(bufferSize:uint = 0, windowMs:uint = 0, scheduler:IScheduler = null):IConnectableObservable
Records the output of the source sequence and replays it to future subscribers
AbsObservable
 Inherited
replayDefer(selector:Function, bufferSize:uint = 0, windowMs:uint = 0, scheduler:IScheduler = null):IObservable
Creates a shared sequence that replays values to future subscrubers, the shared sequence will be passed to the selector function when the sequence is subscribed to
AbsObservable
 Inherited
retry(retryCount:uint = 0):IObservable
Repeats the source sequence when an error occurs
AbsObservable
 Inherited
sample(intervalMs:uint, scheduler:IScheduler = null):IObservable
Emits the latest value on a time interval from a source sequence
AbsObservable
 Inherited
scan(accumulator:Function, initialValue:Object = null, useInitialValue:Boolean = false):IObservable
Runs calculation functions over every value in the source sequence and emits the value as it is calculated
AbsObservable
 Inherited
select(selector:Function):IObservable
Deprecated: Please Use map
AbsObservable
 Inherited
selectMany(selector:Function):IObservable
Deprecated: Please Use mapMany
Starts a new sequence, returned by selector, for every value in the source sequence and merges their values
AbsObservable
 Inherited
sequenceEqual(other:IObservable, valueComparer:Function = null):IObservable
Determines whether two observable sequences are equal
AbsObservable
 Inherited
Emits the only item from a source sequence, or an error if any other number of values are emitted.
AbsObservable
 Inherited
Emits the only item from a source sequence, the default value if no values are emitted, or an error if more than one value is emitted.
AbsObservable
 Inherited
skip(count:uint):IObservable
Ignores a set number of values from the start of the source sequence
AbsObservable
 Inherited
skipLast(count:uint):IObservable
Ignores a set number of values from the end of the source sequence
AbsObservable
 Inherited
Ignores values from a source sequence until a value is received from a specified sequence
AbsObservable
 Inherited
skipWhile(predicate:Function):IObservable
Ignores values from a source sequence until a condition is no longer met
AbsObservable
 Inherited
Emits the specified values at the start of a sequence
AbsObservable
 Inherited
subscribe(onNext:Function, onComplete:Function = null, onError:Function = null):ICancelable
Subscribes to this observable using the supplied functions
AbsObservable
 Inherited
Defers subscriptions to the source through a scheduler
AbsObservable
  
[override] Subscribes to this observable using the supplied observer
ConnectableObservable
 Inherited
Returns the summed value of all the elements in the source sequence
AbsObservable
 Inherited
switchMany(selector:Function):IObservable
Like selectMany, starts a new sequence for every value in the source sequence but cancels the previous sequence each time.
AbsObservable
 Inherited
take(count:uint):IObservable
Takes only the first set number of values from a source sequenc
AbsObservable
 Inherited
takeLast(count:uint):IObservable
Takes only the last set number of values from a source sequence
AbsObservable
 Inherited
Takes values from a source sequence until a value is received from a specified sequence
AbsObservable
 Inherited
takeWhile(predicate:Function):IObservable
Takes values from a source sequence until a condition is no longer met
AbsObservable
 Inherited
then(thenFunction:Function):Plan
Creates a Plan from this sequence, by supplying a valueClass and a mappingFunction for the values from each sequence in this Pattern
AbsObservable
 Inherited
throttle(dueTimeMs:uint, scheduler:IScheduler = null):IObservable
Limits how often values from a source sequence will be accepted from a source
AbsObservable
 Inherited
Includes, with every value emitted, the amount of time passed since the previous value
AbsObservable
 Inherited
timeout(timeoutMs:uint, other:IObservable = null, scheduler:IScheduler = null):IObservable
Raises an error (or subscribes a specified sequence) after a certain period of inactivity
AbsObservable
 Inherited
timestamp(scheduler:IScheduler = null):IObservable
Includes, with every value emitted, the timestamp of when the value was emitted from the source
AbsObservable
 Inherited
Delivers all the results as a single array when the source completes
AbsObservable
 Inherited
window(windowClosingSelector:Function):IObservable
Splits values into child-observable windows which are closed by the caller
AbsObservable
 Inherited
windowWithCount(count:uint, skip:uint = 0):IObservable
Emits the values from a source sequence in groups of a specific size
AbsObservable
 Inherited
windowWithTime(timeMs:uint, timeShiftMs:uint = 0, scheduler:IScheduler = null):IObservable
Emits the values from a source sequence in groups of a specific size
AbsObservable
 Inherited
windowWithTimeOrCount(timeMs:uint, count:uint, scheduler:IScheduler = null):IObservable
Emits IObservable sequences containing values received in sized batches or within a timespan, whichever occurs first
AbsObservable
 Inherited
zip(rightSource:IObservable, selector:Function):IObservable
Merges two sequences through a mapping function while only ever using each value once
AbsObservable
Constructor Detail
ConnectableObservable()Constructor
public function ConnectableObservable(source:IObservable, subject:ISubject = null)



Parameters
source:IObservable
 
subject:ISubject (default = null)
Method Detail
connect()method
public function connect():ICancelable

Makes this observable 'hot', so that values will be emitted whether there is a subscriber connected or not.

Returns
ICancelable
refCount()method 
public function refCount():IObservable

Makes this observable 'hot' when an observer subscribes, and will cancel the source subscription when the last observer unsubscribes

Returns
IObservable
subscribeWith()method 
override public function subscribeWith(observer:IObserver):ICancelable

Subscribes to this observable using the supplied observer

Parameters

observer:IObserver

Returns
ICancelable — An instance of ICancelable that can be used to unsubscribe at anytime by calling cancel()