| 1 | package Javonet::Sdk::Internal::ConnectionType; | ||
| 2 | use strict; | ||
| 3 | use warnings FATAL => 'all'; | ||
| 4 | use Moose; | ||
| 5 | |||
| 6 | my %connection_type = ( | ||
| 7 | 'InMemory' => 0, | ||
| 8 | 'Tcp' => 1, | ||
| 9 | 'WithConfig' => 2, | ||
| 10 | ); | ||
| 11 | |||
| 12 | sub get_connection_type { | ||
| 13 | my $type = shift; | ||
| 14 | return $connection_type{$type}; | ||
| 15 | } | ||
| 16 | |||
| 17 | |||
| 18 | no Moose; | ||
| 19 | 1; |