Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.joepritzel.feather;
 
 import java.util.List;
 
A builder for the PSBroker class.

By default, it uses the Sequential publish strategy and the FastSubscribeUnsubscribe subscribe strategy.

Author(s):
Joe Pritzel
public class PSBrokerBuilder {

A mutable representation of a PSBroker.
Creates a new PSBrokerBuilder.
	public PSBrokerBuilder() {
	}

Used to provide a strategy for publishing to the broker.

Parameters:
strategy - The strategy that will be used to publish messages to subscribers.
		. = strategy;
		return this;
	}

Used to provide a strategy for subscribing to messages.

Parameters:
strategy - The strategy that will be used to subscribe to message types.
		return this;
	}

The map that should be used internally, that maps types to a list of subscribers.

Parameters:
mapping - The map to be used.
		. = mapping;
		return this;
	}

Builds the PSBroker.

Returns:
The PSBroker that has been built.
	public PSBroker build() {
	}
New to GrepCode? Check out our FAQ X