org.specrunner.concurrency
Interface IConcurrentMapping

All Known Implementing Classes:
ConcurrentMappingImpl

public interface IConcurrentMapping

Given a resource by name, returns the equivalent within a concurrent environment, for example, when asked to a database url as IConcurrentMapping.get("url","jdbc:hsqld:mem:test") could return "jdbc:hsqld:mem:testThread1".

Author:
Thiago Santos

Method Summary
 Object get(String name, Object value)
          Given a resource name and the original one, return a concurrent version of this resource.
 String getThread()
          Get the thread name normalized.
 

Method Detail

get

Object get(String name,
           Object value)
Given a resource name and the original one, return a concurrent version of this resource.

Parameters:
name - The resource name.
value - The resource value.
Returns:
The changed resource.

getThread

String getThread()
Get the thread name normalized.

Returns:
The thread name.


Copyright © 2014. All rights reserved.