replace thin spaces with regular spaces (to make diagrams look good) (#20696)

This commit is contained in:
2beaucoup 2016-06-02 11:38:34 +02:00 committed by Konrad Malawski
parent 609fb0ec03
commit 02904212bd
3 changed files with 42 additions and 42 deletions

View file

@ -44,22 +44,22 @@ private object PoolConductor {
/* /*
Stream Setup Stream Setup
============ ============
Request- Request-
Request- +-----------+ +-----------+ Switch- +-------------+ +-----------+ Context Request- +-----------+ +-----------+ Switch- +-------------+ +-----------+ Context
Context | retry | | slot- | Command | doubler | | route +--------------> Context | retry | | slot- | Command | doubler | | route +-------------->
+--------->| Merge +---->|Selector +-------------->| (MapConcat) +---->| (Flexi +--------------> +--------->| Merge +---->| Selector +-------------->| (MapConcat) +---->| (Flexi +-------------->
| | | | | | | Route) +--------------> | | | | | | | Route) +-------------->
+----+------+ +-----+-----+ +-------------+ +-----------+ to slots +----+------+ +-----+-----+ +-------------+ +-----------+ to slots
^ ^ ^ ^
| | SlotEvent | | SlotEvent
| +----+----+ | +----+----+
| |flatten | mapAsync | | flatten | mapAsync
| +----+----+ | +----+----+
| |RawSlotEvent | | RawSlotEvent
| Request- | | Request- |
| Context +---------+ | Context +---------+
+-------------+ retry |<-------- RawSlotEvent (from slotEventMerge) +-------------+ retry |<-------- RawSlotEvent (from slotEventMerge)
| Split | | Split |
+---------+ +---------+
*/ */

View file

@ -26,28 +26,28 @@ private object PoolFlow {
/* /*
Pool Flow Stream Setup Pool Flow Stream Setup
====================== ======================
+-------------------+ +-------------------+
|| | |
+---->|ConnectionSlot1+----> +----> | Connection Slot 1 +---->
|||| | | | |
|+---+---------------+| | +---+---------------+ |
|| | | | |
+-----------+|+-------------------+|+---------------+ +-----------+ | +-------------------+ | +---------------+
RequestContext |+----+||+---->|| ResponseContext RequestContext | +----+ | | +----> | | ResponseContext
+---------------->|Conductor|--------->|ConnectionSlot2+--------->|responseMerge+------------------> +----------------> | Conductor |---------> | Connection Slot 2 +---------> | responseMerge +------------------>
|+----+||+---->|| | +----+ | | +----> | |
+-----------+|+---------+---------+|+---------------+ +-----------+ | +---------+---------+ | +---------------+
^ ||| | ^ | | | |
| |+-------------------+| | | +-------------------+ |
| |||| | | | | |
RawSlotEvent| +---->|ConnectionSlot3+----> RawSlotEvent | +----> | Connection Slot 3 +---->
| || | | |
| +---------------+---+ | +---------------+---+
| | || | | | |
+-----------+ RawSlotEvent | || +-----------+ RawSlotEvent | | |
|slotEvent| <-------------+ || | slotEvent | <-------------+ | |
| Merge | <-------------------+| | Merge | <-------------------+ |
|| <-------------------------+ | | <-------------------------+
+-----------+ +-----------+
Conductor: Conductor:

View file

@ -37,15 +37,15 @@ private object PoolSlot {
Stream Setup Stream Setup
============ ============
Request- +-----------+ +-------------+ +-------------+ +------------+ Request- +-----------+ +-------------+ +-------------+ +------------+
Context |Slot-| List[ | flatten | Processor- | doubler | |SlotEvent-| Response- Context | Slot- | List[ | flatten | Processor- | doubler | | SlotEvent- | Response-
+--------->|Processor+------------->| (MapConcat) +------------->| (MapConcat) +---->|Split+-------------> +--------->| Processor +------------->| (MapConcat) +------------->| (MapConcat) +---->| Split +------------->
|| Processor- | | Out | | || Context | | Processor- | | Out | | | | Context
+-----------+ Out] +-------------+ +-------------+ +-----+------+ +-----------+ Out] +-------------+ +-------------+ +-----+------+
|RawSlotEvent | RawSlotEvent
|(toConductor | (to Conductor
| via slotEventMerge) | via slotEventMerge)
v v
*/ */
def apply(slotIx: Int, connectionFlow: Flow[HttpRequest, HttpResponse, Any], def apply(slotIx: Int, connectionFlow: Flow[HttpRequest, HttpResponse, Any],
settings: ConnectionPoolSettings)(implicit system: ActorSystem, settings: ConnectionPoolSettings)(implicit system: ActorSystem,